結果

問題 No.934 Explosive energy drink
ユーザー komkompikomkompi
提出日時 2020-04-28 07:42:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 271 bytes
コンパイル時間 173 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 24,456 KB
平均クエリ数 709.42
最終ジャッジ日時 2023-09-24 03:24:08
合計ジャッジ時間 5,794 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
24,360 KB
testcase_01 AC 369 ms
24,424 KB
testcase_02 AC 39 ms
23,712 KB
testcase_03 AC 194 ms
23,668 KB
testcase_04 AC 654 ms
24,120 KB
testcase_05 RE -
testcase_06 AC 38 ms
23,808 KB
testcase_07 AC 40 ms
23,512 KB
testcase_08 AC 39 ms
23,816 KB
testcase_09 AC 39 ms
23,952 KB
testcase_10 AC 40 ms
23,340 KB
testcase_11 AC 40 ms
23,568 KB
testcase_12 AC 42 ms
24,336 KB
testcase_13 AC 46 ms
23,584 KB
testcase_14 AC 49 ms
24,264 KB
testcase_15 AC 204 ms
24,072 KB
testcase_16 AC 59 ms
23,460 KB
testcase_17 AC 84 ms
23,772 KB
testcase_18 AC 94 ms
23,472 KB
testcase_19 AC 151 ms
24,060 KB
testcase_20 AC 256 ms
23,964 KB
testcase_21 AC 259 ms
23,764 KB
testcase_22 AC 363 ms
24,456 KB
testcase_23 AC 365 ms
23,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[i+1 for i in range(N)]

shin=[2,3]

ans=[]
for M in range(N)[::-1]:
    print("?", str(len(A[:M]+ans)))
    print(*A[:M]+ans)
    
    judge=int(input())
    
    if judge==0:
        ans=[A[-1]]+ans
    A.pop(-1)

print("!", str(len(ans)))
print(*ans)
0