結果
問題 | No.172 UFOを捕まえろ |
ユーザー | PicklesSuperior |
提出日時 | 2018-10-21 13:09:14 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 47 ms / 5,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 30,648 KB |
実行使用メモリ | 31,576 KB |
最終ジャッジ日時 | 2024-11-19 03:21:55 |
合計ジャッジ時間 | 1,968 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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"); ?>