結果
問題 |
No.172 UFOを捕まえろ
|
ユーザー |
![]() |
提出日時 | 2018-10-21 13:08:26 |
言語 | PHP (843.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 30,776 KB |
実行使用メモリ | 31,452 KB |
最終ジャッジ日時 | 2024-11-19 03:21:53 |
合計ジャッジ時間 | 2,668 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 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; print($x . $y . $r . "\n"); $dist += $x + $y + ((int)($r*sqrt(2))+1); print($dist . "\n"); ?>