結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー cologne
提出日時 2022-01-27 15:14:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 251 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 82,132 KB
実行使用メモリ 52,480 KB
最終ジャッジ日時 2024-12-25 13:49:53
合計ジャッジ時間 1,568 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math


def input(): return sys.stdin.readline().rstrip()


def main():
    C = int(input())
    Rin, Rout = map(int, input().split())
    print(C * math.pi**2 / 4 * (Rin+Rout) * (Rout-Rin)**2)


if __name__ == '__main__':
    main()
0