結果

問題 No.1319 最強とんがりコーン
ユーザー ayaoniayaoni
提出日時 2020-12-16 00:38:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 701 ms / 2,000 ms
コード長 721 bytes
コンパイル時間 1,728 ms
コンパイル使用メモリ 81,528 KB
実行使用メモリ 75,388 KB
最終ジャッジ日時 2023-10-20 08:00:19
合計ジャッジ時間 45,281 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 458 ms
75,384 KB
testcase_01 AC 472 ms
75,384 KB
testcase_02 AC 672 ms
75,384 KB
testcase_03 AC 692 ms
75,384 KB
testcase_04 AC 501 ms
75,384 KB
testcase_05 AC 639 ms
75,384 KB
testcase_06 AC 667 ms
75,384 KB
testcase_07 AC 684 ms
75,384 KB
testcase_08 AC 655 ms
75,384 KB
testcase_09 AC 645 ms
75,380 KB
testcase_10 AC 674 ms
75,384 KB
testcase_11 AC 668 ms
75,384 KB
testcase_12 AC 639 ms
75,384 KB
testcase_13 AC 669 ms
75,384 KB
testcase_14 AC 678 ms
75,380 KB
testcase_15 AC 670 ms
75,380 KB
testcase_16 AC 689 ms
75,384 KB
testcase_17 AC 617 ms
75,384 KB
testcase_18 AC 675 ms
75,380 KB
testcase_19 AC 584 ms
75,384 KB
testcase_20 AC 460 ms
75,384 KB
testcase_21 AC 465 ms
75,384 KB
testcase_22 AC 458 ms
75,384 KB
testcase_23 AC 459 ms
75,384 KB
testcase_24 AC 455 ms
75,380 KB
testcase_25 AC 465 ms
75,384 KB
testcase_26 AC 459 ms
75,384 KB
testcase_27 AC 458 ms
75,384 KB
testcase_28 AC 459 ms
75,384 KB
testcase_29 AC 456 ms
75,380 KB
testcase_30 AC 461 ms
75,384 KB
testcase_31 AC 455 ms
75,380 KB
testcase_32 AC 662 ms
75,384 KB
testcase_33 AC 549 ms
75,384 KB
testcase_34 AC 450 ms
75,380 KB
testcase_35 AC 459 ms
75,384 KB
testcase_36 AC 457 ms
75,384 KB
testcase_37 AC 457 ms
75,384 KB
testcase_38 AC 456 ms
75,384 KB
testcase_39 AC 498 ms
75,384 KB
testcase_40 AC 680 ms
75,384 KB
testcase_41 AC 678 ms
75,384 KB
testcase_42 AC 689 ms
75,384 KB
testcase_43 AC 690 ms
75,384 KB
testcase_44 AC 690 ms
75,384 KB
testcase_45 AC 687 ms
75,384 KB
testcase_46 AC 662 ms
75,384 KB
testcase_47 AC 696 ms
75,384 KB
testcase_48 AC 687 ms
75,384 KB
testcase_49 AC 699 ms
75,384 KB
testcase_50 AC 698 ms
75,380 KB
testcase_51 AC 686 ms
75,384 KB
testcase_52 AC 695 ms
75,380 KB
testcase_53 AC 687 ms
75,384 KB
testcase_54 AC 698 ms
75,384 KB
testcase_55 AC 701 ms
75,380 KB
testcase_56 AC 692 ms
75,380 KB
testcase_57 AC 688 ms
75,384 KB
testcase_58 AC 688 ms
75,380 KB
testcase_59 AC 687 ms
75,384 KB
testcase_60 AC 288 ms
75,316 KB
testcase_61 AC 287 ms
75,316 KB
testcase_62 AC 289 ms
75,312 KB
testcase_63 AC 287 ms
75,316 KB
testcase_64 AC 679 ms
75,384 KB
testcase_65 AC 678 ms
75,388 KB
testcase_66 AC 289 ms
75,316 KB
testcase_67 AC 459 ms
75,380 KB
testcase_68 AC 656 ms
75,384 KB
testcase_69 AC 463 ms
75,384 KB
testcase_70 AC 697 ms
75,384 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(min(D/(2*R*(1-h/H)),1))
    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