結果

問題 No.98 円を描こう
ユーザー 綾地寧々綾地寧々
提出日時 2016-02-08 13:07:56
言語 PHP
(7.2.24)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 1,255 ms
コンパイル使用メモリ 18,624 KB
実行使用メモリ 18,852 KB
最終ジャッジ日時 2023-07-21 20:16:28
合計ジャッジ時間 2,090 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,648 KB
testcase_01 AC 16 ms
18,708 KB
testcase_02 AC 16 ms
18,852 KB
testcase_03 AC 15 ms
18,668 KB
testcase_04 AC 15 ms
18,800 KB
testcase_05 AC 16 ms
18,600 KB
testcase_06 WA -
testcase_07 AC 16 ms
18,684 KB
testcase_08 AC 15 ms
18,708 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($a, $b) = explode(" ",trim(fgets(STDIN)));
$c2 = pow(abs($a),2) + pow(abs($b),2);
$c = ceil(sqrt($c2));
if ( (($c*$c) - $c2) == 0 )
	echo (($c*2)+1).PHP_EOL;
else
	echo ($c*2).PHP_EOL;
0