結果

問題 No.934 Explosive energy drink
ユーザー lloyzlloyz
提出日時 2022-04-07 19:12:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 682 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 24,596 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-08-18 18:31:30
合計ジャッジ時間 8,781 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
23,676 KB
testcase_01 AC 678 ms
24,000 KB
testcase_02 AC 37 ms
23,388 KB
testcase_03 AC 321 ms
23,728 KB
testcase_04 AC 665 ms
24,596 KB
testcase_05 AC 36 ms
23,464 KB
testcase_06 AC 35 ms
23,640 KB
testcase_07 AC 36 ms
23,464 KB
testcase_08 AC 35 ms
23,844 KB
testcase_09 AC 33 ms
24,384 KB
testcase_10 AC 37 ms
23,480 KB
testcase_11 AC 36 ms
24,348 KB
testcase_12 AC 39 ms
24,348 KB
testcase_13 AC 45 ms
23,376 KB
testcase_14 AC 45 ms
23,584 KB
testcase_15 AC 204 ms
24,384 KB
testcase_16 AC 70 ms
23,528 KB
testcase_17 AC 114 ms
24,012 KB
testcase_18 AC 119 ms
23,548 KB
testcase_19 AC 248 ms
23,820 KB
testcase_20 AC 425 ms
23,988 KB
testcase_21 AC 455 ms
23,828 KB
testcase_22 AC 673 ms
23,988 KB
testcase_23 AC 682 ms
24,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ANS = []
for i in range(1, n + 1):
    A = [j for j in range(1, n + 1) if j != i]
    print(f"? {n - 1}")
    print(*A)
    ans = int(input())
    if ans == 0:
        ANS.append(i)
print(f"! {len(ANS)}")
print(*ANS)
0