結果

問題 No.678 2Dシューティングゲームの必殺ビーム
ユーザー tailstails
提出日時 2018-04-27 22:36:24
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 1,290 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 5,396 KB
最終ジャッジ日時 2023-09-10 06:29:03
合計ジャッジ時間 2,166 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,056 KB
testcase_01 AC 6 ms
5,060 KB
testcase_02 WA -
testcase_03 AC 6 ms
5,188 KB
testcase_04 AC 6 ms
5,116 KB
testcase_05 AC 7 ms
5,152 KB
testcase_06 AC 6 ms
5,080 KB
testcase_07 AC 6 ms
5,220 KB
testcase_08 WA -
testcase_09 AC 7 ms
5,344 KB
testcase_10 AC 7 ms
5,292 KB
testcase_11 AC 6 ms
5,224 KB
testcase_12 AC 7 ms
5,292 KB
testcase_13 AC 7 ms
5,108 KB
testcase_14 AC 7 ms
5,224 KB
testcase_15 WA -
testcase_16 AC 6 ms
5,216 KB
testcase_17 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
Name "main::u" used only once: possible typo at Main.pl line 4.
Main.pl syntax OK

ソースコード

diff #

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

@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-500..$r-500){
		$h|=$m[$_];
		$m[$_]=0;
	}
	$r[$i]=$h.$/;
}
print@r;
0