ๆดๆฐ
ABC
C
ABC159 C - Maximum Volume
https://atcoder.jp/contests/abc159/tasks/abc159_c (opens in a new tab)
็ธฆใๆจชใ้ซใใ ใจใใฆใ ใๆฑใใๅ้กใงใใใ ใงใใใใใ
ใใใ ใๅบๅฎใใใจใ ใงๆๅคงใจใชใใๆๅคงๅคใฏ ใจใชใใ ใใฃใฆใๅถ็ดใฎ็ฏๅฒๅ ใง ใๅ จๆข็ดขใใใฐใใใ
import numpy as np
L = int(input())
ans = 0
for y in np.linspace(0, L, 10**6):
ans = max(ans, ((y - L) / 2) ** 2 * y)
print(ans)
ๅฎใฏ ใฎ่งฃๆณใๅญๅจใใใ
็ธๅ ็ธไนๅนณๅใใใ ใๅณใก ใ่จ็ฎใใใฐใใใ
print((int(input()) / 3) ** 3)