結果
| 問題 |
No.513 宝探し2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-03 11:43:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 376 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 27,640 KB |
| 平均クエリ数 | 78.42 |
| 最終ジャッジ日時 | 2024-07-16 14:10:21 |
| 合計ジャッジ時間 | 3,590 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 RE * 9 |
ソースコード
def main():
xmin = 0
xmax = 100000
print(xmax // 2 + 1, 0)
y = int(input())
while True:
x = xmin + (xmax - xmin) // 2
print(x, 0)
ret = int(input())
if y < ret:
xmin = x
else:
xmax = x
y = min(y, ret)
if ret == 0 or xmin == xmax:
break
print(x, y)
main()