結果

問題 No.934 Explosive energy drink
ユーザー kawamochikawamochi
提出日時 2019-11-29 22:01:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 934 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 475 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 24,312 KB
平均クエリ数 709.58
最終ジャッジ日時 2023-09-23 18:29:12
合計ジャッジ時間 9,305 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
24,288 KB
testcase_01 AC 915 ms
23,844 KB
testcase_02 AC 41 ms
24,096 KB
testcase_03 AC 445 ms
23,564 KB
testcase_04 AC 934 ms
23,740 KB
testcase_05 AC 41 ms
23,624 KB
testcase_06 AC 40 ms
23,492 KB
testcase_07 AC 40 ms
23,812 KB
testcase_08 AC 41 ms
24,048 KB
testcase_09 AC 41 ms
23,680 KB
testcase_10 AC 41 ms
23,404 KB
testcase_11 AC 42 ms
23,564 KB
testcase_12 AC 44 ms
23,496 KB
testcase_13 AC 52 ms
23,832 KB
testcase_14 AC 53 ms
24,252 KB
testcase_15 AC 270 ms
23,492 KB
testcase_16 AC 82 ms
23,860 KB
testcase_17 AC 147 ms
24,312 KB
testcase_18 AC 146 ms
23,568 KB
testcase_19 AC 328 ms
23,584 KB
testcase_20 AC 587 ms
23,632 KB
testcase_21 AC 649 ms
23,700 KB
testcase_22 AC 914 ms
24,048 KB
testcase_23 AC 922 ms
23,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = []
for i in range(1,n+1):
    print('?',n-1)
    for j in range(1,n+1):
        if j==i:
            continue
        print(j,end =' ')
    print()
    res = input()
    if res == '0':
        ans.append(i)
print('!',len(ans))
for i in ans:
    print(i,end=' ')
print()
0