結果

問題 No.934 Explosive energy drink
ユーザー neterukunneterukun
提出日時 2019-11-29 22:31:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 712 ms / 2,000 ms
コード長 404 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 10,808 KB
実行使用メモリ 24,640 KB
平均クエリ数 711.42
最終ジャッジ日時 2023-09-23 18:50:03
合計ジャッジ時間 6,652 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
23,480 KB
testcase_01 AC 425 ms
24,032 KB
testcase_02 AC 43 ms
23,724 KB
testcase_03 AC 217 ms
24,276 KB
testcase_04 AC 712 ms
24,124 KB
testcase_05 AC 42 ms
23,736 KB
testcase_06 AC 41 ms
23,608 KB
testcase_07 AC 41 ms
24,264 KB
testcase_08 AC 42 ms
24,336 KB
testcase_09 AC 43 ms
23,748 KB
testcase_10 AC 44 ms
23,608 KB
testcase_11 AC 43 ms
23,724 KB
testcase_12 AC 45 ms
24,252 KB
testcase_13 AC 50 ms
24,132 KB
testcase_14 AC 53 ms
23,964 KB
testcase_15 AC 218 ms
24,000 KB
testcase_16 AC 64 ms
23,628 KB
testcase_17 AC 92 ms
23,724 KB
testcase_18 AC 102 ms
23,964 KB
testcase_19 AC 168 ms
24,388 KB
testcase_20 AC 290 ms
24,364 KB
testcase_21 AC 298 ms
24,324 KB
testcase_22 AC 416 ms
24,640 KB
testcase_23 AC 423 ms
23,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


n = int(input())
ans = []
for i in range(n+1)[::-1]:
    if len(([j+1 for j in range(i)] + ans[::-1])) == 1:
        ans.append(i+1)
        continue
    print("?", len(ans) + i)   
    print(*([j+1 for j in range(i)] + ans[::-1])) 
    sys.stdout.flush()
    res = int(input())
    
    if res == 1:
        continue
    else:
        ans.append(i+1)

print("!", len(ans))
print(*ans[::-1])
0