結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  neterukun | 
| 提出日時 | 2019-11-29 22:15:13 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 401 bytes | 
| コンパイル時間 | 263 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 93,272 KB | 
| 平均クエリ数 | 711.42 | 
| 最終ジャッジ日時 | 2024-07-16 18:30:51 | 
| 合計ジャッジ時間 | 5,814 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 23 RE * 1 | 
ソースコード
import sys
n = int(input())
ans = []
for i in range(n+1)[::-1]:
    if i == 0 and not ans:
        print("!", 1)
        print(1)
        exit()
        
    print("?", len(ans) + i)   
    print(*([j+1 for j in range(i)] + ans[::-1]))
    
    sys.stdout.flush()
    res = int(input())
    
    if res == 1:
        continue
    else:
        ans.append(i+1)
print("!", len(ans))
print(*ans[::-1])
            
            
            
        