結果

問題 No.934 Explosive energy drink
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-05-07 22:39:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 472 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 94,100 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-21 10:38:49
合計ジャッジ時間 8,057 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
86,992 KB
testcase_01 AC 464 ms
94,008 KB
testcase_02 AC 88 ms
87,308 KB
testcase_03 AC 278 ms
93,316 KB
testcase_04 AC 466 ms
94,100 KB
testcase_05 AC 91 ms
86,980 KB
testcase_06 AC 88 ms
87,172 KB
testcase_07 AC 87 ms
87,132 KB
testcase_08 AC 87 ms
86,792 KB
testcase_09 AC 88 ms
87,524 KB
testcase_10 AC 87 ms
87,052 KB
testcase_11 AC 90 ms
87,664 KB
testcase_12 AC 103 ms
92,484 KB
testcase_13 AC 105 ms
92,524 KB
testcase_14 AC 109 ms
91,940 KB
testcase_15 AC 207 ms
93,348 KB
testcase_16 AC 124 ms
92,588 KB
testcase_17 AC 155 ms
92,944 KB
testcase_18 AC 155 ms
92,768 KB
testcase_19 AC 232 ms
93,416 KB
testcase_20 AC 333 ms
92,820 KB
testcase_21 AC 359 ms
93,696 KB
testcase_22 AC 463 ms
93,584 KB
testcase_23 AC 472 ms
93,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

n = int(input())

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

print("!",len(ans))
print(*ans)
0