結果

問題 No.934 Explosive energy drink
ユーザー tonegawatonegawa
提出日時 2020-08-18 16:06:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 514 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,876 KB
実行使用メモリ 24,556 KB
平均クエリ数 711.58
最終ジャッジ日時 2023-09-24 05:39:19
合計ジャッジ時間 4,807 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
23,628 KB
testcase_01 AC 267 ms
24,556 KB
testcase_02 AC 34 ms
24,144 KB
testcase_03 AC 142 ms
23,548 KB
testcase_04 AC 264 ms
24,048 KB
testcase_05 AC 32 ms
23,592 KB
testcase_06 AC 31 ms
23,988 KB
testcase_07 AC 32 ms
23,604 KB
testcase_08 AC 31 ms
23,512 KB
testcase_09 AC 31 ms
24,360 KB
testcase_10 AC 32 ms
23,976 KB
testcase_11 AC 33 ms
24,348 KB
testcase_12 AC 34 ms
23,524 KB
testcase_13 AC 37 ms
23,988 KB
testcase_14 AC 38 ms
24,360 KB
testcase_15 AC 101 ms
24,012 KB
testcase_16 AC 50 ms
23,368 KB
testcase_17 AC 66 ms
24,144 KB
testcase_18 AC 67 ms
23,796 KB
testcase_19 AC 113 ms
23,760 KB
testcase_20 AC 174 ms
23,484 KB
testcase_21 AC 185 ms
24,132 KB
testcase_22 AC 279 ms
24,152 KB
testcase_23 AC 265 ms
23,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

print("! "+str(len(expl)),flush=True)
print(" ".join(expl),flush=True)
0