結果

問題 No.98 円を描こう
ユーザー cielciel
提出日時 2016-02-08 13:13:43
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 158 bytes
コンパイル時間 2,632 ms
コンパイル使用メモリ 32,616 KB
実行使用メモリ 32,860 KB
最終ジャッジ日時 2023-10-21 20:21:07
合計ジャッジ時間 2,837 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
list($x, $y) = explode(" ",trim(fgets(STDIN)));
$r = pow(abs($x),2) + pow(abs($y),2);
$r2 = sqrt($r);
$r2 = intval(floor($r2)*2) + 1;
echo $r2 .PHP_EOL;
0