結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー tailstails
提出日時 2018-04-27 22:39:34
言語 Perl
(5.38.0)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 1,246 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 5,392 KB
最終ジャッジ日時 2023-09-10 06:30:27
合計ジャッジ時間 1,142 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,192 KB
testcase_01 AC 6 ms
5,028 KB
testcase_02 AC 6 ms
5,248 KB
testcase_03 AC 6 ms
5,076 KB
testcase_04 AC 6 ms
5,176 KB
testcase_05 AC 7 ms
5,392 KB
testcase_06 AC 7 ms
5,308 KB
testcase_07 AC 7 ms
5,224 KB
testcase_08 AC 7 ms
5,160 KB
testcase_09 AC 7 ms
5,284 KB
testcase_10 AC 7 ms
5,232 KB
testcase_11 AC 7 ms
5,200 KB
testcase_12 AC 7 ms
5,084 KB
testcase_13 AC 8 ms
5,112 KB
testcase_14 AC 7 ms
5,300 KB
testcase_15 AC 8 ms
5,196 KB
testcase_16 AC 7 ms
5,352 KB
testcase_17 AC 7 ms
5,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::u" used only once: possible typo at Main.pl line 4.
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$a,$b)=glob<>;
$m[$_]=1for$a+500..$b+500;

@e=sort map{($l,$u,$r,$d)=glob;pack N4,9999-$d,$l+500,$r+500,$i++}<>;


for(@e){
	($d,$l,$r,$i)=unpack N4,$_;
	$h=0;
	for($l..$r){
		$h|=$m[$_];
		$m[$_]=0;
	}
	$r[$i]=$h.$/;
}
print@r;
0