結果
問題 |
No.3126 Dual Query Problem
|
ユーザー |
![]() |
提出日時 | 2025-03-02 14:45:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,712 KB |
実行使用メモリ | 130,928 KB |
最終ジャッジ日時 | 2025-03-02 14:45:23 |
合計ジャッジ時間 | 11,979 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 30 |
ソースコード
N,Q=map(int, input().split()) a=[] s=set() for i in [0]*N: x=input() if not x in s:a.append("1 "+x) a.append(f"2 {x} {x}") while len(a)<Q:a.append("1 1 1") if len(a)<Q: print("No") else: print("Yes") print(*a,sep='\n')