結果

問題 No.89 どんどんドーナツどーんといこう!
ユーザー papinianuspapinianus
提出日時 2016-06-20 09:45:24
言語 PHP
(8.3.4)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 230 bytes
コンパイル時間 1,337 ms
コンパイル使用メモリ 32,400 KB
実行使用メモリ 31,536 KB
最終ジャッジ日時 2024-04-15 19:42:04
合計ジャッジ時間 1,041 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
31,328 KB
testcase_01 AC 39 ms
30,956 KB
testcase_02 AC 41 ms
31,108 KB
testcase_03 AC 43 ms
31,132 KB
testcase_04 AC 40 ms
31,440 KB
testcase_05 AC 37 ms
31,104 KB
testcase_06 AC 40 ms
31,128 KB
testcase_07 AC 38 ms
30,872 KB
testcase_08 AC 37 ms
31,036 KB
testcase_09 AC 38 ms
31,536 KB
testcase_10 AC 38 ms
31,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$pai = 3.14159265358979323846;
$cal = trim(fgets(STDIN));
list($r_in, $r_out) = explode(' ', trim(fgets(STDIN)));
$r = ($r_out-$r_in) / 2;
$circle = $pai*$r*$r;
$move = $pai*($r_out+$r_in);
echo ($circle*$move*$cal).PHP_EOL;
0