結果

問題 No.679 不思議マーケット
ユーザー tailstails
提出日時 2018-04-27 22:54:38
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 5,400 KB
実行使用メモリ 5,452 KB
最終ジャッジ日時 2023-09-10 06:40:12
合計ジャッジ時間 1,889 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,276 KB
testcase_01 AC 6 ms
5,088 KB
testcase_02 AC 7 ms
5,208 KB
testcase_03 WA -
testcase_04 AC 56 ms
5,452 KB
testcase_05 AC 67 ms
5,232 KB
testcase_06 AC 26 ms
5,324 KB
testcase_07 AC 20 ms
5,176 KB
testcase_08 AC 56 ms
5,292 KB
testcase_09 AC 6 ms
5,108 KB
testcase_10 AC 24 ms
5,216 KB
testcase_11 AC 21 ms
5,412 KB
testcase_12 AC 29 ms
5,172 KB
testcase_13 AC 38 ms
5,152 KB
testcase_14 AC 32 ms
5,356 KB
testcase_15 AC 19 ms
5,300 KB
testcase_16 AC 6 ms
5,084 KB
testcase_17 AC 7 ms
5,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::r" used only once: possible typo at Main.pl line 3.
Main.pl syntax OK

ソースコード

diff #

($n,$m)=glob<>;
for(1..$m){
	($g,$r)=glob<>;
	$h[$g]=<>;
}
for(1..32){
	hoge:
	for$g(1..$n){
		for($h[$g]=~/\d+/g){
			if(!$u[$_]){
				next hoge;
			}
		}
		$u[$g]=1;
	}
}
print 0+grep$_,@u;
0