結果

問題 No.679 不思議マーケット
ユーザー tailstails
提出日時 2018-04-27 22:53:59
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 193 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 5,340 KB
実行使用メモリ 5,384 KB
最終ジャッジ日時 2023-09-10 06:39:55
合計ジャッジ時間 8,411 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,184 KB
testcase_01 AC 9 ms
5,244 KB
testcase_02 AC 11 ms
5,384 KB
testcase_03 TLE -
testcase_04 AC 753 ms
5,320 KB
testcase_05 AC 930 ms
5,256 KB
testcase_06 AC 296 ms
5,200 KB
testcase_07 AC 200 ms
5,316 KB
testcase_08 AC 741 ms
5,160 KB
testcase_09 AC 9 ms
5,140 KB
testcase_10 AC 257 ms
5,348 KB
testcase_11 AC 219 ms
5,200 KB
testcase_12 AC 334 ms
5,132 KB
testcase_13 AC 479 ms
5,260 KB
testcase_14 AC 384 ms
5,200 KB
testcase_15 AC 174 ms
5,188 KB
testcase_16 AC 12 ms
5,152 KB
testcase_17 AC 10 ms
5,320 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..500){
	hoge:
	for$g(1..$n){
		for($h[$g]=~/\d+/g){
			if(!$u[$_]){
				next hoge;
			}
		}
		$u[$g]=1;
	}
}
print 0+grep$_,@u;
0