結果

問題 No.202 1円玉投げ
ユーザー %20%20
提出日時 2018-05-30 13:14:29
言語 Perl
(5.38.2)
結果
AC  
実行時間 644 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 5,368 KB
実行使用メモリ 114,316 KB
最終ジャッジ日時 2023-08-23 23:39:12
合計ジャッジ時間 11,924 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 557 ms
59,924 KB
testcase_01 AC 603 ms
114,316 KB
testcase_02 AC 2 ms
4,720 KB
testcase_03 AC 2 ms
4,664 KB
testcase_04 AC 3 ms
4,564 KB
testcase_05 AC 45 ms
20,440 KB
testcase_06 AC 523 ms
91,016 KB
testcase_07 AC 583 ms
97,932 KB
testcase_08 AC 593 ms
98,640 KB
testcase_09 AC 331 ms
66,684 KB
testcase_10 AC 139 ms
37,932 KB
testcase_11 AC 268 ms
58,604 KB
testcase_12 AC 279 ms
59,668 KB
testcase_13 AC 154 ms
40,552 KB
testcase_14 AC 52 ms
21,820 KB
testcase_15 AC 319 ms
65,168 KB
testcase_16 AC 498 ms
61,408 KB
testcase_17 AC 501 ms
61,456 KB
testcase_18 AC 500 ms
61,284 KB
testcase_19 AC 301 ms
62,488 KB
testcase_20 AC 472 ms
84,908 KB
testcase_21 AC 295 ms
62,180 KB
testcase_22 AC 7 ms
5,332 KB
testcase_23 AC 8 ms
5,372 KB
testcase_24 AC 7 ms
4,716 KB
testcase_25 AC 6 ms
4,808 KB
testcase_26 AC 7 ms
5,556 KB
testcase_27 AC 14 ms
14,744 KB
testcase_28 AC 7 ms
5,204 KB
testcase_29 AC 8 ms
5,192 KB
testcase_30 AC 11 ms
9,924 KB
testcase_31 AC 7 ms
4,912 KB
testcase_32 AC 14 ms
12,268 KB
testcase_33 AC 7 ms
5,364 KB
testcase_34 AC 8 ms
5,140 KB
testcase_35 AC 545 ms
57,560 KB
testcase_36 AC 541 ms
57,652 KB
testcase_37 AC 644 ms
103,060 KB
testcase_38 AC 541 ms
61,468 KB
testcase_39 AC 4 ms
4,820 KB
testcase_40 AC 4 ms
4,880 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;
for(<>){
	($X,$Y)=split;
	$x=$X/20+1|0;
	$y=$Y/20+1|0;
	for$y($y-1..$y+1){
		for$x($x-1..$x+1){
			for(@{$_[$y][$x]}){
				if((@$_[0]-$X)**2+(@$_[1]-$Y)**2<400){
					goto a
				}
			}
		}
	}
	push@{$_[$y][$x]},[$X,$Y];
	++$z;
	a:
}
print$z
0