結果

問題 No.934 Explosive energy drink
ユーザー 👑 H20H20
提出日時 2022-10-14 13:13:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 491 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 93,856 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-08 19:40:48
合計ジャッジ時間 7,413 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
87,392 KB
testcase_01 AC 487 ms
93,352 KB
testcase_02 AC 94 ms
87,268 KB
testcase_03 AC 302 ms
93,652 KB
testcase_04 AC 484 ms
93,856 KB
testcase_05 AC 96 ms
86,908 KB
testcase_06 AC 93 ms
87,300 KB
testcase_07 AC 93 ms
87,148 KB
testcase_08 AC 92 ms
86,944 KB
testcase_09 AC 93 ms
86,820 KB
testcase_10 AC 93 ms
86,996 KB
testcase_11 AC 95 ms
86,852 KB
testcase_12 AC 108 ms
92,020 KB
testcase_13 AC 115 ms
92,344 KB
testcase_14 AC 115 ms
92,436 KB
testcase_15 AC 228 ms
92,776 KB
testcase_16 AC 131 ms
92,300 KB
testcase_17 AC 170 ms
92,572 KB
testcase_18 AC 171 ms
92,820 KB
testcase_19 AC 253 ms
92,600 KB
testcase_20 AC 363 ms
93,700 KB
testcase_21 AC 381 ms
93,360 KB
testcase_22 AC 480 ms
93,312 KB
testcase_23 AC 491 ms
93,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ALL = set(range(1,N+1))
ANS = []
for i in range(1,N+1):
    ALL.remove(i)
    print('? ' + str(N-1),flush=True)
    print(*sorted(list(ALL)),flush=True)
    if input() == '0':
        ANS.append(i)
    ALL.add(i)
print('! ' + str(len(ANS)))
print(*ANS)
0