結果

問題 No.934 Explosive energy drink
ユーザー convexineqconvexineq
提出日時 2019-11-29 22:07:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 688 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,780 KB
実行使用メモリ 24,588 KB
平均クエリ数 709.42
最終ジャッジ日時 2023-09-23 18:31:17
合計ジャッジ時間 5,929 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
24,012 KB
testcase_01 AC 353 ms
24,540 KB
testcase_02 AC 38 ms
23,376 KB
testcase_03 AC 188 ms
23,664 KB
testcase_04 AC 634 ms
24,588 KB
testcase_05 RE -
testcase_06 AC 37 ms
23,520 KB
testcase_07 AC 38 ms
24,228 KB
testcase_08 AC 38 ms
24,036 KB
testcase_09 AC 38 ms
23,724 KB
testcase_10 AC 40 ms
24,000 KB
testcase_11 AC 39 ms
24,300 KB
testcase_12 AC 42 ms
23,624 KB
testcase_13 AC 46 ms
23,548 KB
testcase_14 AC 47 ms
23,408 KB
testcase_15 AC 201 ms
24,172 KB
testcase_16 AC 59 ms
23,484 KB
testcase_17 AC 84 ms
24,432 KB
testcase_18 AC 92 ms
23,648 KB
testcase_19 AC 151 ms
24,312 KB
testcase_20 AC 253 ms
23,600 KB
testcase_21 AC 256 ms
24,440 KB
testcase_22 AC 364 ms
24,152 KB
testcase_23 AC 357 ms
23,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
 
#h,w,k = [int(i) for i in readline().split()]
#n = int(input())
#ab = [[int(i) for i in readline().split()] for _ in range(n)]


n = int(input())

ans1 = list(range(1,n+1))
ans2 = []

for i in range(n,0,-1):
    if i == 1 and len(ans2) == 1:
        ans2.append(i)
        ans1.pop()
        break
    ans1.pop()
    print("? {}".format(len(ans1) + len(ans2)))
    print(*sorted(ans1 + list(reversed(ans2))))
    sys.stdout.flush()
    if input() == "0":
        ans2.append(i)



print("! {}".format(len(ans1) + len(ans2)))
print(*(ans1 + list(reversed(ans2))))
sys.stdout.flush()
0