結果

問題 No.934 Explosive energy drink
ユーザー convexineqconvexineq
提出日時 2019-11-29 22:02:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
QLE  
実行時間 -
コード長 563 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 24,468 KB
平均クエリ数 708.58
最終ジャッジ日時 2023-09-23 18:29:37
合計ジャッジ時間 4,525 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 QLE -
testcase_01 QLE -
testcase_02 QLE -
testcase_03 QLE -
testcase_04 QLE -
testcase_05 QLE -
testcase_06 QLE -
testcase_07 QLE -
testcase_08 QLE -
testcase_09 QLE -
testcase_10 QLE -
testcase_11 QLE -
testcase_12 QLE -
testcase_13 QLE -
testcase_14 QLE -
testcase_15 QLE -
testcase_16 QLE -
testcase_17 QLE -
testcase_18 QLE -
testcase_19 QLE -
testcase_20 QLE -
testcase_21 QLE -
testcase_22 QLE -
testcase_23 QLE -
権限があれば一括ダウンロードができます

ソースコード

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):
    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(ans1 + list(reversed(ans2))))
sys.stdout.flush()
0