結果

問題 No.948 Bomb vs Dush
ユーザー tanon710
提出日時 2020-05-04 21:07:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 52,864 KB
最終ジャッジ日時 2024-06-24 23:35:07
合計ジャッジ時間 3,156 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 38
権限があれば一括ダウンロードができます

ソースコード

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