結果

問題 No.948 Bomb vs Dush
ユーザー r_ishida
提出日時 2020-02-02 07:24:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-18 20:32:18
合計ジャッジ時間 2,338 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
r = float(input())
R = float(input())
t = 2*math.pi - math.acos((R**2*2-r**2*4)/(R**2*2))
a = ((R+r)**2-(R-r)**2)*(t/2)+math.pi*r**2
print(t)
print(a)
0