結果

問題 No.948 Bomb vs Dush
ユーザー tanon710tanon710
提出日時 2020-05-04 21:07:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 1,758 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 71,904 KB
最終ジャッジ日時 2023-09-07 05:05:46
合計ジャッジ時間 5,665 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,420 KB
testcase_01 AC 71 ms
71,840 KB
testcase_02 AC 73 ms
71,520 KB
testcase_03 AC 77 ms
71,520 KB
testcase_04 AC 72 ms
71,876 KB
testcase_05 AC 72 ms
71,904 KB
testcase_06 AC 71 ms
71,624 KB
testcase_07 AC 74 ms
71,388 KB
testcase_08 AC 70 ms
71,684 KB
testcase_09 AC 72 ms
71,596 KB
testcase_10 AC 70 ms
71,540 KB
testcase_11 AC 71 ms
71,764 KB
testcase_12 AC 73 ms
71,588 KB
testcase_13 AC 72 ms
71,756 KB
testcase_14 AC 73 ms
71,656 KB
testcase_15 AC 71 ms
71,680 KB
testcase_16 AC 70 ms
71,616 KB
testcase_17 AC 71 ms
71,744 KB
testcase_18 AC 71 ms
71,608 KB
testcase_19 AC 70 ms
71,540 KB
testcase_20 AC 72 ms
71,476 KB
testcase_21 AC 69 ms
71,800 KB
testcase_22 AC 70 ms
71,664 KB
testcase_23 AC 69 ms
71,520 KB
testcase_24 AC 69 ms
71,304 KB
testcase_25 AC 70 ms
71,392 KB
testcase_26 AC 72 ms
71,408 KB
testcase_27 AC 73 ms
71,348 KB
testcase_28 AC 72 ms
71,404 KB
testcase_29 AC 70 ms
71,624 KB
testcase_30 AC 69 ms
71,540 KB
testcase_31 AC 70 ms
71,872 KB
testcase_32 AC 71 ms
71,528 KB
testcase_33 AC 70 ms
71,612 KB
testcase_34 AC 71 ms
71,768 KB
testcase_35 AC 72 ms
71,848 KB
testcase_36 AC 71 ms
71,608 KB
testcase_37 AC 70 ms
71,820 KB
testcase_38 AC 75 ms
71,652 KB
testcase_39 AC 70 ms
71,616 KB
testcase_40 AC 70 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

r=float(input())
R=float(input())
cos=(R**2+R**2-(2*r)**2)/(2*R*R)
rad=2*math.pi-math.acos(cos)
print(rad)
theta=360*rad/(2*math.pi)
area=math.pi*((R+r)**2-(R-r)**2)*theta/360
area+=math.pi*(r**2)
print(area)
0