結果

問題 No.934 Explosive energy drink
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2019-11-29 22:07:33
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 599 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 24,300 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 18:31:35
合計ジャッジ時間 7,241 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
24,276 KB
testcase_01 AC 590 ms
23,676 KB
testcase_02 AC 41 ms
23,544 KB
testcase_03 AC 289 ms
23,456 KB
testcase_04 AC 585 ms
23,968 KB
testcase_05 AC 41 ms
24,300 KB
testcase_06 AC 39 ms
24,264 KB
testcase_07 AC 40 ms
24,036 KB
testcase_08 AC 40 ms
23,452 KB
testcase_09 AC 40 ms
24,036 KB
testcase_10 AC 41 ms
23,672 KB
testcase_11 AC 42 ms
23,832 KB
testcase_12 AC 43 ms
23,564 KB
testcase_13 AC 47 ms
23,508 KB
testcase_14 AC 48 ms
24,228 KB
testcase_15 AC 186 ms
23,480 KB
testcase_16 AC 68 ms
23,520 KB
testcase_17 AC 107 ms
23,492 KB
testcase_18 AC 110 ms
23,472 KB
testcase_19 AC 222 ms
24,036 KB
testcase_20 AC 382 ms
24,288 KB
testcase_21 AC 404 ms
23,460 KB
testcase_22 AC 586 ms
23,412 KB
testcase_23 AC 599 ms
24,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

a = []

for i in range(N):

    q = []

    for j in range(N):

        if i != j:
            q.append(j + 1)

    print ("?",N-1)
    print (" ".join(map(str,q)))

    ans = input()

    if ans == "0":
        a.append(i + 1)

print ("!",len(a))
print (" ".join(map(str,a)))
0