結果
| 問題 | No.172 UFOを捕まえろ |
| コンテスト | |
| ユーザー |
PicklesSuperior
|
| 提出日時 | 2018-10-21 13:09:14 |
| 言語 | PHP (8.5.4) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 5,000 ms |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 36,780 KB |
| 実行使用メモリ | 37,444 KB |
| 最終ジャッジ日時 | 2026-05-13 11:38:12 |
| 合計ジャッジ時間 | 2,005 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$input = preg_split('/ /',trim(fgets(STDIN)));
$x = abs($input[0]);
$y = abs($input[1]);
$r = abs($input[2]);
$dist = 0;
$dist += $x + $y + ((int)($r*sqrt(2))+1);
print($dist . "\n");
?>
PicklesSuperior