結果

問題 No.934 Explosive energy drink
ユーザー komkompikomkompi
提出日時 2020-04-28 08:07:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 388 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 10,776 KB
実行使用メモリ 24,688 KB
平均クエリ数 708.83
最終ジャッジ日時 2023-09-24 03:24:02
合計ジャッジ時間 5,553 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 332 ms
24,052 KB
testcase_02 AC 33 ms
24,372 KB
testcase_03 AC 173 ms
24,060 KB
testcase_04 AC 601 ms
24,688 KB
testcase_05 AC 33 ms
23,884 KB
testcase_06 WA -
testcase_07 AC 32 ms
24,012 KB
testcase_08 AC 32 ms
23,424 KB
testcase_09 AC 32 ms
23,516 KB
testcase_10 AC 35 ms
23,688 KB
testcase_11 AC 32 ms
24,264 KB
testcase_12 AC 35 ms
23,856 KB
testcase_13 AC 38 ms
23,436 KB
testcase_14 AC 42 ms
23,728 KB
testcase_15 AC 183 ms
23,936 KB
testcase_16 AC 49 ms
23,384 KB
testcase_17 AC 72 ms
24,264 KB
testcase_18 AC 79 ms
23,632 KB
testcase_19 AC 137 ms
24,384 KB
testcase_20 AC 244 ms
23,540 KB
testcase_21 AC 229 ms
24,076 KB
testcase_22 AC 318 ms
23,832 KB
testcase_23 AC 329 ms
23,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


ans=[]
for M in range(N)[::-1]:
    if len(A[:M]+ans)==2 and len(ans)==0:
        print("!", str(len(A[:M]+ans)))
        print(*A[:M]+ans)
        exit()
    
    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