結果
問題 |
No.934 Explosive energy drink
|
ユーザー |
![]() |
提出日時 | 2019-11-29 22:00:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
QLE
|
実行時間 | - |
コード長 | 546 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 27,632 KB |
平均クエリ数 | 708.58 |
最終ジャッジ日時 | 2024-07-16 18:21:12 |
合計ジャッジ時間 | 4,989 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | QLE * 24 |
ソースコード
# 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))) sys.stdout.flush() print(sorted(ans1 + ans2)) sys.stdout.flush() if input() == "0": ans2.append(i) print("! {}".format(sorted(ans1 + ans2)))