結果
| 問題 | No.934 Explosive energy drink |
| コンテスト | |
| ユーザー |
mkawa2
|
| 提出日時 | 2021-03-30 11:29:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 389 bytes |
| 記録 | |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,864 KB |
| 平均クエリ数 | 14.92 |
| 最終ジャッジ日時 | 2024-07-17 11:07:18 |
| 合計ジャッジ時間 | 5,702 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 24 |
ソースコード
def ask(aa):
print("?", len(aa), flush=True)
print(*aa, flush=True)
return int(input())
n = int(input())
ans = []
r = n
while 1:
l = 0
while l+1 < r:
m = (l+r)//2
aa = list(range(1, m+1))+ans[::-1]
if ask(aa): r = m
else: l = m
ans.append(r)
if ask(ans[::-1]): break
print("!",len(ans),flush=True)
print(*ans[::-1],flush=True)
mkawa2