結果

問題 No.98 円を描こう
ユーザー 綾地寧々綾地寧々
提出日時 2016-02-08 13:07:56
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 3,544 ms
コンパイル使用メモリ 32,612 KB
実行使用メモリ 32,784 KB
最終ジャッジ日時 2023-10-21 20:21:03
合計ジャッジ時間 4,351 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
32,784 KB
testcase_01 AC 40 ms
32,784 KB
testcase_02 AC 41 ms
32,784 KB
testcase_03 AC 41 ms
32,784 KB
testcase_04 AC 40 ms
32,784 KB
testcase_05 AC 41 ms
32,784 KB
testcase_06 WA -
testcase_07 AC 40 ms
32,784 KB
testcase_08 AC 41 ms
32,784 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