結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー 綾地寧々綾地寧々
提出日時 2015-07-16 08:47:39
言語 PHP
(8.3.4)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 292 bytes
コンパイル時間 1,444 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 31,740 KB
最終ジャッジ日時 2024-04-15 19:36:52
合計ジャッジ時間 1,031 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
31,680 KB
testcase_01 AC 42 ms
31,004 KB
testcase_02 AC 41 ms
31,476 KB
testcase_03 AC 38 ms
31,392 KB
testcase_04 AC 37 ms
31,632 KB
testcase_05 AC 38 ms
31,132 KB
testcase_06 AC 40 ms
31,304 KB
testcase_07 AC 39 ms
31,740 KB
testcase_08 AC 38 ms
31,248 KB
testcase_09 AC 39 ms
31,212 KB
testcase_10 AC 38 ms
31,688 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$c = trim(fgets(STDIN));
list($rin,$rout) = explode(" ",trim(fgets(STDIN)));
$doughnut_rad = ($rout-$rin)/2.0;
$doughnut_dim = pow($doughnut_rad, 2) * M_PI;
$round_rad = 2 * M_PI * ($doughnut_rad + $rin);
$doughnut = $doughnut_dim * $round_rad * $c;
printf("%.10f".PHP_EOL, $doughnut);
0