結果

問題 No.934 Explosive energy drink
ユーザー kamome
提出日時 2020-05-20 21:32:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 395 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,976 KB
平均クエリ数 709.58
最終ジャッジ日時 2024-07-17 03:44:14
合計ジャッジ時間 5,256 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
L=[ str(x) for x in range(1,N+1)]
expl=[]
print("? "+str(N))
print(" ".join(L))
ans=True if input()=="1" else False
if ans!=True:
    print("! 0")
    print()
    exit()

for i in range(N):
    print("? "+str(N-1))
    print(" ".join(L[0:i]+L[i+1:]))
    ans=True if input()=="1" else False
    if ans!=True:
        expl.append(i+1)

print("! "+str(len()))
print(" ".join(expl))
0