結果
| 問題 |
No.3126 Dual Query Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-28 10:42:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 297 bytes |
| コンパイル時間 | 1,108 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 38,364 KB |
| 最終ジャッジ日時 | 2025-04-28 10:43:22 |
| 合計ジャッジ時間 | 23,218 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 18 WA * 14 |
ソースコード
n, q = map(int, input().split())
X = [int(input()) for _ in range(n)]
if n + len(set(X)) > q:
print("No")
exit()
nums = list(set(X))
ans = []
for x in nums:
ans.append([1, x, x])
for x in nums:
ans.append([2, x])
ans.append([1, 1, 1])
print("Yes")
for x in ans:
print(*x)