結果

問題 No.934 Explosive energy drink
ユーザー rlangevinrlangevin
提出日時 2023-01-16 00:27:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 484 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 1,182 ms
コンパイル使用メモリ 86,668 KB
実行使用メモリ 93,944 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-08-28 15:14:47
合計ジャッジ時間 9,208 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
87,324 KB
testcase_01 AC 484 ms
93,584 KB
testcase_02 AC 98 ms
87,188 KB
testcase_03 AC 286 ms
93,212 KB
testcase_04 AC 481 ms
93,944 KB
testcase_05 AC 97 ms
87,160 KB
testcase_06 AC 93 ms
87,056 KB
testcase_07 AC 93 ms
86,800 KB
testcase_08 AC 94 ms
87,044 KB
testcase_09 AC 93 ms
86,868 KB
testcase_10 AC 94 ms
87,228 KB
testcase_11 AC 96 ms
87,060 KB
testcase_12 AC 108 ms
92,812 KB
testcase_13 AC 111 ms
92,548 KB
testcase_14 AC 112 ms
92,344 KB
testcase_15 AC 213 ms
92,952 KB
testcase_16 AC 128 ms
92,040 KB
testcase_17 AC 160 ms
92,432 KB
testcase_18 AC 159 ms
93,076 KB
testcase_19 AC 243 ms
92,652 KB
testcase_20 AC 349 ms
92,956 KB
testcase_21 AC 363 ms
93,120 KB
testcase_22 AC 473 ms
93,580 KB
testcase_23 AC 479 ms
93,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

N = int(input())
ans = []
L = list(range(1, N + 1))
for i in range(N):
    print("?", N - 1)
    print(*(L[:i] + L[i + 1:]))
    sys.stdout.flush()
    if not int(input()):
        ans.append(i + 1)
print("!", len(ans))
print(*ans)
sys.stdout.flush()
0