結果

問題 No.1319 最強とんがりコーン
ユーザー 👑 KazunKazun
提出日時 2020-12-16 02:16:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 393 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 81,684 KB
実行使用メモリ 79,508 KB
最終ジャッジ日時 2023-10-20 08:51:12
合計ジャッジ時間 10,504 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
79,440 KB
testcase_01 AC 121 ms
79,436 KB
testcase_02 AC 118 ms
79,496 KB
testcase_03 AC 118 ms
79,500 KB
testcase_04 AC 113 ms
79,436 KB
testcase_05 AC 115 ms
79,496 KB
testcase_06 AC 114 ms
79,504 KB
testcase_07 AC 115 ms
79,500 KB
testcase_08 AC 116 ms
79,504 KB
testcase_09 AC 116 ms
79,500 KB
testcase_10 AC 117 ms
79,500 KB
testcase_11 AC 117 ms
79,500 KB
testcase_12 AC 117 ms
79,500 KB
testcase_13 AC 118 ms
79,496 KB
testcase_14 AC 122 ms
79,500 KB
testcase_15 AC 116 ms
79,504 KB
testcase_16 AC 121 ms
79,500 KB
testcase_17 AC 116 ms
79,440 KB
testcase_18 AC 114 ms
79,496 KB
testcase_19 AC 115 ms
79,436 KB
testcase_20 AC 118 ms
79,440 KB
testcase_21 AC 114 ms
79,440 KB
testcase_22 AC 118 ms
79,440 KB
testcase_23 AC 116 ms
79,440 KB
testcase_24 AC 117 ms
79,436 KB
testcase_25 AC 114 ms
79,432 KB
testcase_26 AC 115 ms
79,436 KB
testcase_27 AC 115 ms
79,440 KB
testcase_28 AC 114 ms
79,436 KB
testcase_29 AC 115 ms
79,440 KB
testcase_30 AC 115 ms
79,436 KB
testcase_31 AC 115 ms
79,444 KB
testcase_32 AC 113 ms
79,508 KB
testcase_33 AC 115 ms
79,436 KB
testcase_34 AC 113 ms
79,440 KB
testcase_35 AC 113 ms
79,436 KB
testcase_36 AC 117 ms
79,444 KB
testcase_37 AC 121 ms
79,432 KB
testcase_38 AC 114 ms
79,440 KB
testcase_39 AC 119 ms
79,444 KB
testcase_40 AC 116 ms
79,500 KB
testcase_41 AC 116 ms
79,496 KB
testcase_42 AC 116 ms
79,496 KB
testcase_43 AC 113 ms
79,496 KB
testcase_44 AC 114 ms
79,504 KB
testcase_45 AC 117 ms
79,500 KB
testcase_46 AC 115 ms
79,500 KB
testcase_47 AC 117 ms
79,508 KB
testcase_48 AC 114 ms
79,496 KB
testcase_49 AC 115 ms
79,500 KB
testcase_50 AC 114 ms
79,500 KB
testcase_51 AC 115 ms
79,500 KB
testcase_52 AC 115 ms
79,496 KB
testcase_53 AC 116 ms
79,504 KB
testcase_54 AC 117 ms
79,500 KB
testcase_55 AC 115 ms
79,504 KB
testcase_56 AC 114 ms
79,504 KB
testcase_57 AC 116 ms
79,508 KB
testcase_58 AC 113 ms
79,496 KB
testcase_59 AC 123 ms
79,504 KB
testcase_60 AC 113 ms
79,432 KB
testcase_61 AC 116 ms
79,440 KB
testcase_62 AC 118 ms
79,436 KB
testcase_63 AC 117 ms
79,436 KB
testcase_64 AC 114 ms
79,496 KB
testcase_65 AC 113 ms
79,500 KB
testcase_66 AC 113 ms
79,428 KB
testcase_67 AC 115 ms
79,432 KB
testcase_68 AC 115 ms
79,504 KB
testcase_69 AC 114 ms
79,440 KB
testcase_70 AC 114 ms
79,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import sqrt,log,acos
def F(z):
    K=max(0,4*R*R*z*z-D*D*H*H)
    A=Decimal(sqrt(K))

    V1=-4*D*H*R*z*A

    L=D*H/(2*R*z)
    L=min(Decimal(1),max(Decimal(-1),L))
    V2=8*R**3*z**3*Decimal(acos(L))
    V3=D**3*H**3*(2*Decimal(log(R))+Decimal(log(2*R*z+A)))

    return (V1+V2+V3)/(12*H*H*R)

from decimal import Decimal
R,H,D=map(Decimal,input().split())
print(F(H)-F(D*H/(2*R)))
0