結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー diginatu
提出日時 2014-12-07 20:36:50
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 2,498 ms
コンパイル使用メモリ 151,812 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 01:45:22
合計ジャッジ時間 3,050 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.conv, std.math, std.string, std.range, std.array,
       std.algorithm;

void main(){
  immutable C = readln().strip().to!int();
  auto buf = readln().strip().split().map!(to!int)();
  immutable I = buf[0];
  immutable O = buf[1];

  writefln("%.10f", C * ((I.to!double-O) ^^ 2 * PI_2 * PI * (O.to!double+I)/2) );
}
0