結果

問題 No.934 Explosive energy drink
ユーザー 👑 KazunKazun
提出日時 2020-11-27 04:29:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 582 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 712 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 93,828 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-24 07:18:37
合計ジャッジ時間 8,034 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
87,068 KB
testcase_01 AC 582 ms
93,828 KB
testcase_02 AC 100 ms
87,572 KB
testcase_03 AC 296 ms
92,956 KB
testcase_04 AC 501 ms
93,816 KB
testcase_05 AC 99 ms
87,332 KB
testcase_06 AC 98 ms
87,156 KB
testcase_07 AC 99 ms
87,632 KB
testcase_08 AC 99 ms
87,456 KB
testcase_09 AC 99 ms
87,324 KB
testcase_10 AC 101 ms
87,452 KB
testcase_11 AC 100 ms
87,060 KB
testcase_12 AC 114 ms
92,844 KB
testcase_13 AC 116 ms
92,328 KB
testcase_14 AC 119 ms
92,776 KB
testcase_15 AC 224 ms
93,256 KB
testcase_16 AC 138 ms
92,900 KB
testcase_17 AC 166 ms
93,300 KB
testcase_18 AC 170 ms
93,160 KB
testcase_19 AC 247 ms
93,452 KB
testcase_20 AC 358 ms
93,648 KB
testcase_21 AC 388 ms
93,080 KB
testcase_22 AC 491 ms
93,484 KB
testcase_23 AC 498 ms
93,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def quest(x):
    T=[i for i in range(1,N+1) if i!=x]
    print("?",N-1)
    print(*T)

    return int(input())

def answer(A):
    print("!",len(A))
    print(*A)
    exit(0)


N=int(input())
print(answer([i for i in range(1,N+1) if not quest(i)]))
0