結果
| 問題 |
No.3347 Guess The Array
|
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-11-14 03:09:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 526 bytes |
| コンパイル時間 | 341 ms |
| コンパイル使用メモリ | 82,348 KB |
| 実行使用メモリ | 97,040 KB |
| 平均クエリ数 | 4155.80 |
| 最終ジャッジ日時 | 2025-11-14 03:09:32 |
| 合計ジャッジ時間 | 27,172 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 RE * 11 |
ソースコード
from collections import defaultdict
N = int(input())
memo = defaultdict(str)
ans = []
for i in range(1,N+1):
for c in range(1,N+1):
print("?",c,*[i]*c)
yn = input()
if(yn == "No"):break
ok,ng = 0,len(ans)+1
while(ng - ok > 1):
mid = (ok+ng)//2
now = ans[:mid] + [i]*c
print("?",len(now),*now)
if(input() == "Yes"):
ok = mid
else:
ng = mid
ans.insert(ok,i)
print("!",*ans)
回転