結果
| 問題 |
No.513 宝探し2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-06 00:18:00 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 482 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,768 KB |
| 平均クエリ数 | 100.00 |
| 最終ジャッジ日時 | 2024-07-16 13:30:27 |
| 合計ジャッジ時間 | 4,194 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 12 |
ソースコード
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 a1 < a2:
top -= 1
else:
btm += 1
print(0, btm, flush=True)
a = int(input())
print(a, btm, flush=True)
a = int(input())
return
if __name__ == '__main__':
solve()