結果

問題 No.934 Explosive energy drink
ユーザー ああいいああいい
提出日時 2022-01-01 18:04:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 809 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,672 KB
平均クエリ数 709.58
最終ジャッジ日時 2024-04-18 15:58:14
合計ジャッジ時間 9,144 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
27,208 KB
testcase_01 AC 806 ms
27,096 KB
testcase_02 AC 52 ms
26,840 KB
testcase_03 AC 406 ms
27,480 KB
testcase_04 AC 805 ms
27,480 KB
testcase_05 AC 48 ms
26,968 KB
testcase_06 AC 47 ms
27,480 KB
testcase_07 AC 47 ms
27,480 KB
testcase_08 AC 47 ms
27,672 KB
testcase_09 AC 50 ms
27,224 KB
testcase_10 AC 44 ms
27,224 KB
testcase_11 AC 46 ms
27,224 KB
testcase_12 AC 48 ms
27,088 KB
testcase_13 AC 56 ms
27,224 KB
testcase_14 AC 55 ms
27,224 KB
testcase_15 AC 231 ms
27,224 KB
testcase_16 AC 84 ms
26,840 KB
testcase_17 AC 129 ms
27,352 KB
testcase_18 AC 131 ms
27,096 KB
testcase_19 AC 285 ms
27,480 KB
testcase_20 AC 503 ms
27,128 KB
testcase_21 AC 539 ms
27,224 KB
testcase_22 AC 786 ms
27,608 KB
testcase_23 AC 809 ms
27,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = []
for i in range(1,N+1):
    S = ""
    for j in range(1,N+1):
        if j != i:
            S += str(j) + " "
    print('?',N-1)
    print(S)
    a = int(input())
    if a == 0:
        ans.append(i)
print('!',len(ans))
S = ""
for a in ans:
    S += str(a) + " "
print(S)
0