結果

問題 No.934 Explosive energy drink
ユーザー stngstng
提出日時 2022-08-15 16:02:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 459 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 93,964 KB
平均クエリ数 707.58
最終ジャッジ日時 2024-04-10 03:31:01
合計ジャッジ時間 7,103 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 328 ms
93,668 KB
testcase_02 WA -
testcase_03 AC 200 ms
93,200 KB
testcase_04 WA -
testcase_05 AC 60 ms
68,556 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 58 ms
68,776 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 100 ms
86,200 KB
testcase_17 AC 131 ms
92,844 KB
testcase_18 AC 138 ms
92,752 KB
testcase_19 AC 188 ms
93,064 KB
testcase_20 AC 241 ms
92,964 KB
testcase_21 AC 248 ms
93,276 KB
testcase_22 AC 311 ms
93,560 KB
testcase_23 AC 309 ms
93,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
val = n-1
kaku = []
for i in range(n-1):
    print("?",val,flush=True)
    a = kaku[:]
    for j in range(val-len(kaku)):
        a.append(j+i//2+i%2+1)
    a.sort()
    print(*a,flush=True)
    ans = input()
    if ans == "1":#不要
        val -= 1
    else:
        if i % 2 == 0:
            kaku.append(n-(i//2))
        else:
            kaku.append(i//2+1)
a = kaku[:]
a.sort()
print("!",len(a),flush=True)
print(*a,flush=True)
exit()
0