結果

問題 No.1319 最強とんがりコーン
ユーザー shotoyoo
提出日時 2020-12-16 01:25:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,864 KB
最終ジャッジ日時 2024-09-20 03:59:09
合計ジャッジ時間 4,400 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 6 WA * 64
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")

r,h,d = list(map(float, input().split()))
import math
a = math.asin(d/2/r)
ans = 2*h*r*r
s = d/2/r
c = (1-s**2)**0.5
ans0 = 2*h*r*r*(0.5*(math.pi/2-a) - (s*c)/2 - (c**3)/3)
v = 0
v += math.pi/4 - a/2
v += (0 - math.sin(2*a)/4)
v += (0 - math.cos(a)**3)/3
print(ans*v)
0