結果

問題 No.1319 最強とんがりコーン
ユーザー 👑 KazunKazun
提出日時 2020-12-22 01:11:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 435 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,688 KB
実行使用メモリ 59,868 KB
最終ジャッジ日時 2023-10-21 12:21:00
合計ジャッジ時間 26,938 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 329 ms
59,868 KB
testcase_01 AC 331 ms
59,868 KB
testcase_02 AC 361 ms
59,868 KB
testcase_03 AC 371 ms
59,868 KB
testcase_04 AC 337 ms
59,868 KB
testcase_05 AC 361 ms
59,868 KB
testcase_06 AC 359 ms
59,868 KB
testcase_07 AC 367 ms
59,868 KB
testcase_08 AC 360 ms
59,868 KB
testcase_09 AC 363 ms
59,868 KB
testcase_10 AC 420 ms
59,868 KB
testcase_11 AC 364 ms
59,868 KB
testcase_12 AC 363 ms
59,868 KB
testcase_13 AC 363 ms
59,868 KB
testcase_14 AC 394 ms
59,868 KB
testcase_15 AC 360 ms
59,868 KB
testcase_16 AC 385 ms
59,868 KB
testcase_17 AC 359 ms
59,868 KB
testcase_18 AC 377 ms
59,868 KB
testcase_19 AC 354 ms
59,868 KB
testcase_20 AC 330 ms
59,868 KB
testcase_21 AC 334 ms
59,868 KB
testcase_22 AC 330 ms
59,868 KB
testcase_23 AC 329 ms
59,868 KB
testcase_24 AC 328 ms
59,868 KB
testcase_25 AC 333 ms
59,868 KB
testcase_26 AC 329 ms
59,868 KB
testcase_27 AC 329 ms
59,868 KB
testcase_28 AC 329 ms
59,868 KB
testcase_29 AC 333 ms
59,868 KB
testcase_30 AC 332 ms
59,868 KB
testcase_31 AC 334 ms
59,868 KB
testcase_32 AC 360 ms
59,868 KB
testcase_33 AC 347 ms
59,868 KB
testcase_34 AC 330 ms
59,868 KB
testcase_35 AC 330 ms
59,868 KB
testcase_36 AC 331 ms
59,868 KB
testcase_37 AC 330 ms
59,868 KB
testcase_38 AC 328 ms
59,868 KB
testcase_39 AC 336 ms
59,868 KB
testcase_40 AC 363 ms
59,868 KB
testcase_41 AC 429 ms
59,868 KB
testcase_42 AC 399 ms
59,868 KB
testcase_43 AC 421 ms
59,868 KB
testcase_44 AC 394 ms
59,868 KB
testcase_45 AC 433 ms
59,868 KB
testcase_46 AC 362 ms
59,868 KB
testcase_47 AC 414 ms
59,868 KB
testcase_48 AC 366 ms
59,868 KB
testcase_49 AC 409 ms
59,868 KB
testcase_50 AC 419 ms
59,868 KB
testcase_51 AC 433 ms
59,868 KB
testcase_52 AC 423 ms
59,868 KB
testcase_53 AC 435 ms
59,868 KB
testcase_54 AC 385 ms
59,868 KB
testcase_55 AC 395 ms
59,868 KB
testcase_56 AC 426 ms
59,868 KB
testcase_57 AC 434 ms
59,868 KB
testcase_58 AC 432 ms
59,868 KB
testcase_59 AC 433 ms
59,868 KB
testcase_60 AC 39 ms
53,412 KB
testcase_61 AC 40 ms
53,412 KB
testcase_62 AC 39 ms
53,412 KB
testcase_63 AC 42 ms
53,412 KB
testcase_64 AC 363 ms
59,868 KB
testcase_65 AC 362 ms
59,868 KB
testcase_66 AC 38 ms
53,412 KB
testcase_67 AC 329 ms
59,868 KB
testcase_68 AC 363 ms
59,868 KB
testcase_69 AC 329 ms
59,868 KB
testcase_70 AC 407 ms
59,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt,log,acos
def F():
    z=(D*H)/(2*R)
    delta=(H-z)/(10**7)
    S=0
    while z<H:
        t=max(-1,min(1,D*H/(2*R*z)))
        alpha=4*R*z*acos(t)
        beta=D*H*sqrt(max(4-(D*H/(R*z))**2,0))

        S+=z*(alpha-beta)
        z+=delta
    return R*S/(2*H*H)*delta

R,H,D=map(float,input().split())
print(F())
0