結果

問題 No.934 Explosive energy drink
ユーザー neterukunneterukun
提出日時 2019-11-29 22:10:41
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 311 bytes
コンパイル時間 586 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 94,256 KB
平均クエリ数 711.42
最終ジャッジ日時 2023-09-23 18:33:55
合計ジャッジ時間 7,045 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
86,812 KB
testcase_01 AC 313 ms
92,832 KB
testcase_02 AC 88 ms
86,968 KB
testcase_03 AC 211 ms
92,620 KB
testcase_04 AC 455 ms
93,976 KB
testcase_05 RE -
testcase_06 AC 89 ms
87,336 KB
testcase_07 AC 89 ms
87,056 KB
testcase_08 AC 89 ms
86,624 KB
testcase_09 AC 91 ms
87,404 KB
testcase_10 AC 90 ms
87,176 KB
testcase_11 AC 91 ms
86,808 KB
testcase_12 AC 100 ms
91,824 KB
testcase_13 AC 105 ms
92,244 KB
testcase_14 AC 106 ms
92,216 KB
testcase_15 AC 203 ms
92,640 KB
testcase_16 AC 118 ms
92,752 KB
testcase_17 AC 139 ms
92,424 KB
testcase_18 AC 143 ms
92,628 KB
testcase_19 AC 185 ms
93,004 KB
testcase_20 AC 257 ms
92,808 KB
testcase_21 AC 261 ms
93,040 KB
testcase_22 AC 315 ms
93,448 KB
testcase_23 AC 322 ms
92,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


n = int(input())
ans = []
for i in range(n+1)[::-1]:
    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