結果
| 問題 |
No.3126 Dual Query Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-21 15:35:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 449 bytes |
| コンパイル時間 | 390 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 96,012 KB |
| 最終ジャッジ日時 | 2025-03-21 15:35:30 |
| 合計ジャッジ時間 | 15,669 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 21 WA * 11 |
ソースコード
from collections import defaultdict
n,q=map(int,input().split())
items=[int(input()) for _ in range(n)]
st=set(items)
mp=defaultdict(int)
res=0
if len(st)+n<=q:
print("Yes")
for i in range(n):
if items[i] not in mp:
mp[items[i]]=len(mp)+1
print(1,len(mp),items[i])
res+=1
print(2,mp[items[i]])
res+=1
for i in range(q-res):
print(1,10**10,10**10)
else:
print("No")