結果

問題 No.934 Explosive energy drink
コンテスト
ユーザー convexineq
提出日時 2019-11-29 22:02:08
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
QLE  
実行時間 -
コード長 563 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 595 ms
コンパイル使用メモリ 20,704 KB
実行使用メモリ 34,688 KB
平均クエリ数 708.58
最終ジャッジ日時 2026-03-31 08:05:15
合計ジャッジ時間 8,708 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other QLE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# 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