結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-05-31 12:57:12
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 216 bytes
コンパイル時間 3,817 ms
コンパイル使用メモリ 65,884 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 08:31:32
合計ジャッジ時間 4,555 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils, stats, math

let C = stdin.readLine.parseFloat
let Rio = stdin.readLine.split.map(parseInt)

let R = Rio.mean
let r = (Rio.max - Rio.min) / 2


echo 2.0 * pow(PI, 2.0) * pow(r, 2.0) * R * C
0