結果

問題 No.679 不思議マーケット
ユーザー tailstails
提出日時 2018-04-27 22:56:17
言語 Perl
(5.38.0)
結果
AC  
実行時間 342 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 6,764 KB
最終ジャッジ日時 2023-09-10 06:40:39
合計ジャッジ時間 2,224 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
5,228 KB
testcase_01 AC 8 ms
5,192 KB
testcase_02 AC 8 ms
5,324 KB
testcase_03 AC 342 ms
6,764 KB
testcase_04 AC 70 ms
5,656 KB
testcase_05 AC 84 ms
5,608 KB
testcase_06 AC 71 ms
5,228 KB
testcase_07 AC 65 ms
5,252 KB
testcase_08 AC 69 ms
5,700 KB
testcase_09 AC 7 ms
5,372 KB
testcase_10 AC 62 ms
5,344 KB
testcase_11 AC 66 ms
5,256 KB
testcase_12 AC 64 ms
5,336 KB
testcase_13 AC 90 ms
5,392 KB
testcase_14 AC 84 ms
5,512 KB
testcase_15 AC 57 ms
5,212 KB
testcase_16 AC 8 ms
5,212 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]=[glob<>];
}
for(1..500){
	hoge:
	for$g(1..$n){
		for(@{$h[$g]}){
			if(!$u[$_]){
				next hoge;
			}
		}
		$u[$g]=1;
	}
}
print 0+grep$_,@u;
0