結果

問題 No.89 どんどんドーナツどーんといこう!
コンテスト
ユーザー Yuhel Tanaka
提出日時 2018-10-03 20:41:47
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 23 ms / 5,000 ms
+ 700µs
コード長 215 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 56 ms
コンパイル使用メモリ 15,104 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2026-09-10 20:28:44
合計ジャッジ時間 1,545 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from decimal import Decimal as d
from math import pi

c=d(input())
rin,rout=map(d,input().split())

if c==d("0"):
  print("0.0000000000")
else:
  a=d(str(pi))*(rout-rin)**2/4
  b=d(str(pi))*(rout+rin)
  print(a*b*c)
0