結果

問題 No.934 Explosive energy drink
ユーザー FromBooskaFromBooska
提出日時 2023-04-04 13:02:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 524 ms / 2,000 ms
コード長 681 bytes
コンパイル時間 636 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 92,600 KB
平均クエリ数 709.58
最終ジャッジ日時 2024-04-08 12:33:53
合計ジャッジ時間 7,278 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
69,468 KB
testcase_01 AC 524 ms
92,344 KB
testcase_02 AC 60 ms
69,460 KB
testcase_03 AC 283 ms
91,584 KB
testcase_04 AC 520 ms
92,600 KB
testcase_05 AC 63 ms
69,460 KB
testcase_06 AC 61 ms
69,460 KB
testcase_07 AC 60 ms
69,460 KB
testcase_08 AC 60 ms
69,460 KB
testcase_09 AC 63 ms
69,460 KB
testcase_10 AC 62 ms
69,460 KB
testcase_11 AC 64 ms
69,460 KB
testcase_12 AC 86 ms
80,316 KB
testcase_13 AC 81 ms
80,300 KB
testcase_14 AC 86 ms
82,364 KB
testcase_15 AC 199 ms
91,448 KB
testcase_16 AC 106 ms
89,156 KB
testcase_17 AC 140 ms
91,448 KB
testcase_18 AC 142 ms
91,448 KB
testcase_19 AC 231 ms
91,576 KB
testcase_20 AC 340 ms
91,832 KB
testcase_21 AC 370 ms
91,960 KB
testcase_22 AC 501 ms
92,352 KB
testcase_23 AC 517 ms
92,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# Kの数と、K種がどれか、という2つのわからない要因がある
# 1つをまず確定できないかと思ったが、それは難しそう
# それなら、何を含まないかを確定させていくのでどうか
# たとえばN=5なら、まず1234でチェック、次に1235として、どれを含まないかチェック
# これを一通りやればどれを含まなくてよいかわかる

N = int(input())
ans_list = []
for i in range(1, N+1):
    print('?', N-1)
    LIST = [a for a in range(1, N+1) if a != i]
    print(*LIST)
    response = int(input())
    if response == 0:
        ans_list.append(i)

print('!', len(ans_list))
print(*ans_list)
0