結果
| 問題 | No.934 Explosive energy drink | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-10-04 14:12:16 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 824 ms / 2,000 ms | 
| コード長 | 262 bytes | 
| コンパイル時間 | 85 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 27,608 KB | 
| 平均クエリ数 | 709.58 | 
| 最終ジャッジ日時 | 2024-07-17 07:02:45 | 
| 合計ジャッジ時間 | 8,779 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 24 | 
ソースコード
from sys import stdout
n = int(input())
ans = []
for i in range(n):
    print("?", n - 1)
    print(*range(1, i + 1), end=" ")
    print(*range(i + 2, n + 1))
    stdout.flush()
    if int(input()) == 0:
        ans.append(i + 1)
print("!", len(ans))
print(*ans)
            
            
            
        