結果

問題 No.934 Explosive energy drink
ユーザー stngstng
提出日時 2022-08-15 15:47:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 460 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,864 KB
平均クエリ数 709.25
最終ジャッジ日時 2024-04-10 03:08:34
合計ジャッジ時間 8,852 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 594 ms
27,608 KB
testcase_02 AC 47 ms
26,968 KB
testcase_03 AC 293 ms
27,088 KB
testcase_04 AC 938 ms
27,096 KB
testcase_05 AC 48 ms
26,840 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 48 ms
27,224 KB
testcase_10 AC 47 ms
27,352 KB
testcase_11 AC 49 ms
27,088 KB
testcase_12 AC 55 ms
27,224 KB
testcase_13 AC 59 ms
27,216 KB
testcase_14 AC 64 ms
26,968 KB
testcase_15 AC 289 ms
27,608 KB
testcase_16 AC 77 ms
27,224 KB
testcase_17 AC 117 ms
27,224 KB
testcase_18 AC 133 ms
27,088 KB
testcase_19 AC 230 ms
27,224 KB
testcase_20 AC 400 ms
27,224 KB
testcase_21 AC 418 ms
27,352 KB
testcase_22 AC 581 ms
27,224 KB
testcase_23 AC 592 ms
27,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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