結果

問題 No.3347 Guess The Array
コンテスト
ユーザー 回転
提出日時 2025-11-14 00:23:08
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 514 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 81,972 KB
実行使用メモリ 95,668 KB
平均クエリ数 3800.43
最終ジャッジ日時 2025-11-14 00:23:32
合計ジャッジ時間 23,077 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 RE * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = []
for i in range(1,N+1):
    count = 1
    place = 0
    while(True):
        print("?",count,*[i]*count)
        if(input() == "No"):break
        
        while(place != len(ans)+1):
            now = ans[:place] + [i] + ans[place:]
            place += 1
            
            print("?",len(now),*now)
            if(input() == "Yes"):
                ans = now
                break
    
        count += 1
        if(len(ans) == N):break
    if(len(ans) == N):break
print("!",*ans)
0