結果

問題 No.3126 Dual Query Problem
ユーザー 三価スニウム
提出日時 2025-06-25 01:29:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 328 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 100,540 KB
最終ジャッジ日時 2025-06-25 01:29:30
合計ジャッジ時間 13,853 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 18 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N, Q = map(int, input().split())

query = []
a = set()

for i in range(N):
    x = int(input())
    if x not in a:
        a.add(x)
        query.append((1, x, x))
    query.append((2, x))

if len(query) > Q:
    print('No')
else:
    for q in query:
        print(*q)
    for _ in range(Q-len(query)):
        print(*(1, 1, 1))
0