結果

問題 No.1319 最強とんがりコーン
ユーザー ayaoniayaoni
提出日時 2020-12-16 00:27:30
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 709 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,836 KB
実行使用メモリ 77,376 KB
最終ジャッジ日時 2023-10-20 07:10:53
合計ジャッジ時間 44,305 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 690 ms
75,460 KB
testcase_04 AC 502 ms
75,460 KB
testcase_05 AC 646 ms
75,460 KB
testcase_06 AC 665 ms
75,456 KB
testcase_07 AC 690 ms
75,460 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 689 ms
75,460 KB
testcase_11 AC 678 ms
75,460 KB
testcase_12 AC 657 ms
75,460 KB
testcase_13 AC 676 ms
75,460 KB
testcase_14 AC 692 ms
75,456 KB
testcase_15 AC 678 ms
75,460 KB
testcase_16 AC 689 ms
75,460 KB
testcase_17 RE -
testcase_18 AC 689 ms
75,460 KB
testcase_19 AC 591 ms
75,460 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 460 ms
75,460 KB
testcase_23 AC 467 ms
75,456 KB
testcase_24 RE -
testcase_25 AC 470 ms
75,460 KB
testcase_26 RE -
testcase_27 AC 460 ms
75,460 KB
testcase_28 AC 458 ms
75,460 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 470 ms
75,460 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 AC 468 ms
75,460 KB
testcase_36 RE -
testcase_37 AC 472 ms
75,460 KB
testcase_38 RE -
testcase_39 RE -
testcase_40 AC 680 ms
75,460 KB
testcase_41 AC 682 ms
75,460 KB
testcase_42 AC 698 ms
75,460 KB
testcase_43 AC 685 ms
75,460 KB
testcase_44 AC 690 ms
75,460 KB
testcase_45 AC 676 ms
75,460 KB
testcase_46 RE -
testcase_47 AC 689 ms
75,460 KB
testcase_48 AC 683 ms
75,460 KB
testcase_49 AC 691 ms
75,460 KB
testcase_50 AC 692 ms
75,460 KB
testcase_51 AC 674 ms
75,460 KB
testcase_52 AC 685 ms
75,456 KB
testcase_53 AC 675 ms
75,460 KB
testcase_54 AC 696 ms
75,460 KB
testcase_55 AC 693 ms
75,460 KB
testcase_56 AC 687 ms
75,460 KB
testcase_57 AC 676 ms
75,460 KB
testcase_58 AC 680 ms
75,460 KB
testcase_59 AC 680 ms
75,460 KB
testcase_60 AC 279 ms
75,392 KB
testcase_61 AC 284 ms
75,388 KB
testcase_62 AC 280 ms
75,392 KB
testcase_63 AC 282 ms
75,392 KB
testcase_64 AC 665 ms
75,460 KB
testcase_65 AC 667 ms
75,456 KB
testcase_66 AC 280 ms
75,388 KB
testcase_67 RE -
testcase_68 AC 639 ms
75,456 KB
testcase_69 AC 457 ms
75,460 KB
testcase_70 AC 689 ms
75,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from math import acos,sqrt
sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


R,H,D = map(float,S().split())

M = H*(1-D/(2*R))
ans = 0
for i in range(1,10000001):
    h = M*i/10000000
    theta = acos(D/(2*R*(1-h/H)))
    ans += 2*theta*R**2*(1-h/H)**2-D*sqrt((R*(1-h/H))**2-(D/2)**2)

print(M*ans/10000000)
0