結果

問題 No.89 どんどんドーナツどーんといこう!
コンテスト
ユーザー dango
提出日時 2023-06-05 21:37:48
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 24 ms / 5,000 ms
+ 874µs
コード長 166 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 68 ms
コンパイル使用メモリ 15,104 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2026-10-13 01:23:06
合計ジャッジ時間 1,823 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def SOLV(r, R):
  return 2 * 3.141592653589793 ** 2 * r ** 2 * R
C = int(input())
L, R = map(int, input().split())
print(SOLV(abs(R - L) / 2, L + abs(R - L) / 2) * C)
0