結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,520 KB
testcase_01 AC 3 ms
4,576 KB
testcase_02 AC 2 ms
4,408 KB
testcase_03 RE -
testcase_04 WA -
testcase_05 AC 3 ms
4,508 KB
testcase_06 AC 2 ms
4,516 KB
testcase_07 AC 2 ms
4,512 KB
testcase_08 AC 3 ms
4,408 KB
testcase_09 AC 2 ms
4,504 KB
testcase_10 WA -
testcase_11 AC 3 ms
4,516 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
4,492 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,552 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;
}
$i++ while $i<abs($x)+abs($y);
print $i;
0