結果
| 問題 |
No.513 宝探し2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-08 17:54:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 443 bytes |
| コンパイル時間 | 151 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 60,928 KB |
| 平均クエリ数 | 39.33 |
| 最終ジャッジ日時 | 2024-07-16 16:23:06 |
| 合計ジャッジ時間 | 9,219 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 RE * 3 |
ソースコード
import numpy as np
import sys
l = [0, 50000, 100000]
while True:
m_l = [-1, -1, -1]
for i in range(3):
print(l[i], 0)
m_l[i] = int(input())
M_l = np.array(m_l)
l.pop(np.argmax(M_l))
l.append(l[1])
l[1] = (l[0] + l[2]) // 2
if l[0] == l[1]:
break
print(l[0], 0)
print(l[0], int(input()))
if int(input()) == 0:
sys.exit()
print(l[2], 0)
print(l[2], int(input()))
sys.exit()