結果

問題 No.3126 Dual Query Problem
ユーザー tails
提出日時 2025-04-25 21:46:01
言語 Perl
(5.40.0)
結果
RE  
実行時間 -
コード長 161 bytes
コンパイル時間 758 ms
コンパイル使用メモリ 8,484 KB
実行使用メモリ 816,328 KB
最終ジャッジ日時 2025-04-25 21:46:16
合計ジャッジ時間 4,461 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other RE * 1 MLE * 1 -- * 30
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::a" 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,$q)=glob<>;
for(<>){
	$_+=0;
	if(!$a[$_]++){
		push@b,"1 $_ $_\n";
	}
	push@b,"2 $_\n";
}
if(@b>$q){
	print"No";
	exit;
}
print"Yes\n",@b,"1 1 1\n"x($q-@b);
0