結果
| 問題 | No.3126 Dual Query Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-25 21:35:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 314 bytes |
| 記録 | |
| コンパイル時間 | 253 ms |
| コンパイル使用メモリ | 95,728 KB |
| 実行使用メモリ | 117,504 KB |
| 最終ジャッジ日時 | 2026-07-10 06:23:33 |
| 合計ジャッジ時間 | 14,084 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 2 |
| other | AC * 18 WA * 1 RE * 14 |
ソースコード
n,q=map(int,input().split())
L=[int(input()) for _ in range(n)]
S=set(L)
S-={0}
SL=list(S)
d=dict()
d[0]=0
for i in range(len(S)):
d[SL[i]]=i+1
if n+len(S)<=q:
print("Yes")
for i in range(len(S)):
print(1,i+1,SL[i])
for e in L:
print(2,d[i+1])
for _ in range(q-n-len(S)):
print(1,1,1)
else:
print("No")