結果

問題 No.934 Explosive energy drink
ユーザー titia
提出日時 2024-11-06 04:15:59
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 411 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,992 KB
平均クエリ数 1315.42
最終ジャッジ日時 2024-11-06 04:16:16
合計ジャッジ時間 11,246 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())

LIST=list(range(1,N+1))

while True:
    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:
            LIST=LIST2
            break
        else:
            continue

    else:
        print("!",len(LIST),flush=True)
        print(*LIST,flush=True)
        break
0