結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
23,504 KB
testcase_01 AC 341 ms
24,632 KB
testcase_02 AC 33 ms
24,084 KB
testcase_03 AC 177 ms
23,876 KB
testcase_04 AC 602 ms
24,528 KB
testcase_05 WA -
testcase_06 AC 31 ms
23,556 KB
testcase_07 AC 32 ms
23,732 KB
testcase_08 AC 33 ms
24,024 KB
testcase_09 AC 32 ms
23,380 KB
testcase_10 AC 32 ms
24,264 KB
testcase_11 AC 33 ms
24,024 KB
testcase_12 AC 35 ms
24,360 KB
testcase_13 AC 39 ms
24,084 KB
testcase_14 AC 42 ms
23,556 KB
testcase_15 AC 183 ms
24,092 KB
testcase_16 AC 49 ms
24,036 KB
testcase_17 AC 72 ms
23,540 KB
testcase_18 AC 80 ms
23,832 KB
testcase_19 AC 133 ms
24,024 KB
testcase_20 AC 239 ms
24,096 KB
testcase_21 AC 245 ms
24,016 KB
testcase_22 AC 327 ms
24,492 KB
testcase_23 AC 333 ms
24,488 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)<=1:
        print("!", str(pre))
        print(*pre)
        exit()
    
    print("?", str(len(A[:M]+ans)))
    print(*A[:M]+ans)
    
    pre=A[:M]+ans
    
    judge=int(input())
    
    if judge==0:
        ans=[A[-1]]+ans
    A.pop(-1)

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