結果

問題 No.172 UFOを捕まえろ
ユーザー tailstails
提出日時 2015-03-26 23:29:55
言語 Perl
(5.38.2)
結果
RE  
実行時間 -
コード長 118 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 5,224 KB
実行使用メモリ 4,620 KB
最終ジャッジ日時 2023-09-11 10:20:54
合計ジャッジ時間 1,138 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,524 KB
testcase_01 AC 2 ms
4,500 KB
testcase_02 AC 2 ms
4,392 KB
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 2 ms
4,516 KB
testcase_06 AC 3 ms
4,600 KB
testcase_07 AC 2 ms
4,476 KB
testcase_08 AC 2 ms
4,520 KB
testcase_09 AC 3 ms
4,436 KB
testcase_10 WA -
testcase_11 AC 3 ms
4,532 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
4,528 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 2 ms
4,500 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 3 ms
4,388 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$/=$";($x,$y,$r)=<>;
if($x||$y){
    $a=1+$r/sqrt($x*$x+$y*$y);
    $x*=$a;
    $y*=$a;
}
print 1+(abs($x)+abs($y)|0);
0