結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー rpy3cpprpy3cpp
提出日時 2015-07-19 22:12:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 519 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-15 19:36:54
合計ジャッジ時間 917 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 32 ms
10,880 KB
testcase_02 AC 31 ms
10,752 KB
testcase_03 AC 32 ms
10,752 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 29 ms
10,880 KB
testcase_06 AC 28 ms
10,880 KB
testcase_07 AC 28 ms
10,752 KB
testcase_08 AC 29 ms
10,752 KB
testcase_09 AC 29 ms
10,880 KB
testcase_10 AC 30 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

'''
内側の半径をa、外側の半径をbとしたとき、ドーナツの実質部分の半径を r とすると
r = (b-a)/2
実質部分の外側から内側にかけて、バームクーヘン上にドーナツをスライスして、
ベルト状のものの面積を求め、これを積分すればよい。
Integrate(2*pi*(a+b+2*x)*sqrt(r**2-x**2), {x, -r, r})
= pi**2*(a+b)*r**2
'''
import math
C = int(input())
Rin, Rout = map(int, input().split())
print((math.pi * (Rout - Rin) / 2)**2 * (Rin + Rout) * C)
0