結果

問題 No.934 Explosive energy drink
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-10-04 14:12:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 663 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 24,688 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-24 06:43:19
合計ジャッジ時間 7,863 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,652 KB
testcase_01 AC 663 ms
24,012 KB
testcase_02 AC 40 ms
23,592 KB
testcase_03 AC 325 ms
24,348 KB
testcase_04 AC 660 ms
24,688 KB
testcase_05 AC 41 ms
24,084 KB
testcase_06 AC 41 ms
23,868 KB
testcase_07 AC 40 ms
24,408 KB
testcase_08 AC 41 ms
24,312 KB
testcase_09 AC 40 ms
24,312 KB
testcase_10 AC 41 ms
24,312 KB
testcase_11 AC 41 ms
23,616 KB
testcase_12 AC 44 ms
23,880 KB
testcase_13 AC 48 ms
24,012 KB
testcase_14 AC 50 ms
23,484 KB
testcase_15 AC 207 ms
24,348 KB
testcase_16 AC 72 ms
23,616 KB
testcase_17 AC 117 ms
23,596 KB
testcase_18 AC 118 ms
23,540 KB
testcase_19 AC 243 ms
23,420 KB
testcase_20 AC 429 ms
23,900 KB
testcase_21 AC 451 ms
24,308 KB
testcase_22 AC 652 ms
24,188 KB
testcase_23 AC 662 ms
24,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdout
n = int(input())
ans = []
for i in range(n):
    print("?", n - 1)
    print(*range(1, i + 1), end=" ")
    print(*range(i + 2, n + 1))
    stdout.flush()
    if int(input()) == 0:
        ans.append(i + 1)
print("!", len(ans))
print(*ans)
0