結果

問題 No.934 Explosive energy drink
ユーザー ttrttr
提出日時 2020-02-02 17:00:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 414 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 24,656 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 19:34:23
合計ジャッジ時間 5,757 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,676 KB
testcase_01 AC 414 ms
24,004 KB
testcase_02 AC 41 ms
23,592 KB
testcase_03 AC 210 ms
23,728 KB
testcase_04 AC 404 ms
24,656 KB
testcase_05 AC 37 ms
24,324 KB
testcase_06 AC 37 ms
23,636 KB
testcase_07 AC 38 ms
23,844 KB
testcase_08 AC 37 ms
23,788 KB
testcase_09 AC 35 ms
24,204 KB
testcase_10 AC 37 ms
23,628 KB
testcase_11 AC 37 ms
23,532 KB
testcase_12 AC 39 ms
23,316 KB
testcase_13 AC 42 ms
23,772 KB
testcase_14 AC 44 ms
23,488 KB
testcase_15 AC 143 ms
24,048 KB
testcase_16 AC 57 ms
23,384 KB
testcase_17 AC 86 ms
24,264 KB
testcase_18 AC 85 ms
23,664 KB
testcase_19 AC 156 ms
23,608 KB
testcase_20 AC 262 ms
24,216 KB
testcase_21 AC 290 ms
24,060 KB
testcase_22 AC 406 ms
24,132 KB
testcase_23 AC 411 ms
24,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = []
for i in range(1, N+1):
    Q = [str(j) for j in range(1, N+1) if j != i]
    print("? " + str(N-1))
    print(" ".join(Q))
    ans = int(input())
    if ans == 0:
        A.append(str(i))

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