結果
| 問題 | No.513 宝探し2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-06 00:21:34 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 629 bytes |
| 記録 | |
| コンパイル時間 | 396 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,608 KB |
| 平均クエリ数 | 61.42 |
| 最終ジャッジ日時 | 2024-07-16 13:30:52 |
| 合計ジャッジ時間 | 2,027 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 RE * 2 |
ソースコード
import sys
lim = 10**5
def solve():
btm = 0
top = lim
while btm != top:
d = (top - btm) // 3
print(0, btm + d, flush=True)
a1 = int(input())
print(0, top - d, flush=True)
a2 = int(input())
if d == 0:
if a1 < a2:
top -= 1
else:
btm += 1
else:
if a1 < a2:
top = top - d
else:
btm = btm + d
print(0, btm, flush=True)
a = int(input())
print(a, btm, flush=True)
a = int(input())
return
if __name__ == '__main__':
solve()