結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 AC 683 ms
75,436 KB
testcase_04 AC 497 ms
75,440 KB
testcase_05 AC 644 ms
75,440 KB
testcase_06 AC 660 ms
75,436 KB
testcase_07 AC 679 ms
75,440 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 685 ms
75,436 KB
testcase_11 AC 661 ms
75,440 KB
testcase_12 AC 652 ms
75,440 KB
testcase_13 AC 669 ms
75,440 KB
testcase_14 AC 681 ms
75,440 KB
testcase_15 AC 672 ms
75,432 KB
testcase_16 AC 696 ms
75,440 KB
testcase_17 RE -
testcase_18 AC 687 ms
75,440 KB
testcase_19 AC 589 ms
75,440 KB
testcase_20 RE -
testcase_21 RE -
testcase_22 AC 459 ms
75,436 KB
testcase_23 AC 462 ms
75,440 KB
testcase_24 RE -
testcase_25 AC 467 ms
75,436 KB
testcase_26 RE -
testcase_27 AC 463 ms
75,440 KB
testcase_28 AC 462 ms
75,440 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 467 ms
75,440 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 AC 471 ms
75,440 KB
testcase_36 RE -
testcase_37 AC 469 ms
75,440 KB
testcase_38 RE -
testcase_39 RE -
testcase_40 AC 680 ms
75,440 KB
testcase_41 AC 677 ms
75,440 KB
testcase_42 AC 687 ms
75,440 KB
testcase_43 AC 679 ms
75,440 KB
testcase_44 AC 682 ms
75,440 KB
testcase_45 AC 676 ms
75,436 KB
testcase_46 RE -
testcase_47 AC 690 ms
75,440 KB
testcase_48 AC 686 ms
75,436 KB
testcase_49 AC 694 ms
75,440 KB
testcase_50 AC 697 ms
75,440 KB
testcase_51 AC 682 ms
75,436 KB
testcase_52 AC 693 ms
75,440 KB
testcase_53 AC 676 ms
75,440 KB
testcase_54 AC 692 ms
75,440 KB
testcase_55 AC 689 ms
75,440 KB
testcase_56 AC 671 ms
75,440 KB
testcase_57 AC 689 ms
75,440 KB
testcase_58 AC 675 ms
75,440 KB
testcase_59 AC 680 ms
75,440 KB
testcase_60 AC 282 ms
75,368 KB
testcase_61 AC 283 ms
75,372 KB
testcase_62 AC 284 ms
75,372 KB
testcase_63 AC 282 ms
75,372 KB
testcase_64 AC 666 ms
75,436 KB
testcase_65 AC 669 ms
75,440 KB
testcase_66 AC 285 ms
75,372 KB
testcase_67 RE -
testcase_68 AC 645 ms
75,440 KB
testcase_69 AC 462 ms
75,436 KB
testcase_70 AC 691 ms
75,440 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(abs((R*(1-h/H))**2-(D/2)**2))

print(M*ans/10000000)
0