結果
問題 |
No.3126 Dual Query Problem
|
ユーザー |
|
提出日時 | 2025-04-25 21:35:02 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 82,716 KB |
実行使用メモリ | 109,144 KB |
最終ジャッジ日時 | 2025-04-25 21:35:26 |
合計ジャッジ時間 | 11,766 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 2 |
other | AC * 18 WA * 1 RE * 13 |
ソースコード
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")