結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  titia | 
| 提出日時 | 2024-11-06 04:22:05 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 875 ms / 2,000 ms | 
| コード長 | 341 bytes | 
| コンパイル時間 | 247 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 27,608 KB | 
| 平均クエリ数 | 709.58 | 
| 最終ジャッジ日時 | 2024-11-06 04:22:46 | 
| 合計ジャッジ時間 | 8,972 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
N=int(input())
LIST=list(range(1,N+1))
NONEED=[]
for i in range(len(LIST)):
    LIST2=LIST[:i]+LIST[i+1:]
    print("?",len(LIST2),flush=True)
    print(*LIST2,flush=True)
    ans=int(input())
    if ans==1:
        NONEED.append(LIST[i])
        
ANS=sorted(set(LIST)-set(NONEED))
print("!",len(ANS),flush=True)
print(*ANS,flush=True)
            
            
            
        