結果
| 問題 | No.3126 Dual Query Problem |
| コンテスト | |
| ユーザー |
三価スニウム
|
| 提出日時 | 2025-06-25 01:29:50 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 197 ms / 2,000 ms |
| + 270µs | |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 64,104 KB |
| 実行使用メモリ | 95,824 KB |
| 最終ジャッジ日時 | 2026-11-11 05:40:12 |
| 合計ジャッジ時間 | 13,566 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 |
ソースコード
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:
print('Yes')
for q in query:
print(*q)
for _ in range(Q-len(query)):
print(*(1, 1, 1))
三価スニウム