結果

問題 No.934 Explosive energy drink
ユーザー 👑 rin204
提出日時 2022-01-18 23:55:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 494 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 93,912 KB
平均クエリ数 709.58
最終ジャッジ日時 2024-11-23 13:37:51
合計ジャッジ時間 6,762 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = []
for i in range(1, n + 1):
    A = []
    for j in range(1, n + 1):
        if i != j:
            A.append(j)
    print("?", n - 1, flush = True)
    print(*A, flush = True)
    ret = int(input())
    if ret == 0:
        ans.append(i)
        
print("!", len(ans), flush = True)
print(*ans)
0