結果

問題 No.934 Explosive energy drink
ユーザー hir355hir355
提出日時 2020-04-03 17:21:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 412 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 24,288 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-24 03:15:41
合計ジャッジ時間 5,525 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
24,000 KB
testcase_01 AC 412 ms
23,556 KB
testcase_02 AC 35 ms
24,288 KB
testcase_03 AC 214 ms
23,400 KB
testcase_04 AC 407 ms
23,824 KB
testcase_05 AC 34 ms
24,228 KB
testcase_06 AC 33 ms
24,012 KB
testcase_07 AC 32 ms
23,692 KB
testcase_08 AC 33 ms
23,676 KB
testcase_09 AC 37 ms
23,724 KB
testcase_10 AC 34 ms
23,916 KB
testcase_11 AC 35 ms
23,640 KB
testcase_12 AC 35 ms
23,664 KB
testcase_13 AC 36 ms
23,544 KB
testcase_14 AC 37 ms
24,264 KB
testcase_15 AC 135 ms
23,628 KB
testcase_16 AC 53 ms
23,508 KB
testcase_17 AC 85 ms
24,096 KB
testcase_18 AC 83 ms
23,480 KB
testcase_19 AC 167 ms
23,856 KB
testcase_20 AC 266 ms
24,264 KB
testcase_21 AC 301 ms
23,664 KB
testcase_22 AC 404 ms
23,400 KB
testcase_23 AC 411 ms
23,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = []
for i in range(n):
    print('?', n - 1)
    if i == 0:
        print(' '.join(map(str, range(2, n + 1))))
    else:
        print(' '.join(map(str, range(1, i + 1))),
              ' '.join(map(str, range(i + 2, n + 1))))
    a = int(input())
    if a == 0:
        ans.append(i + 1)
print('!', len(ans))
print(' '.join(map(str, ans)))
0