結果

問題 No.513 宝探し2
ユーザー ssmkzkssmkzk
提出日時 2018-11-08 17:29:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 438 bytes
コンパイル時間 715 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 45,900 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-09-23 16:31:18
合計ジャッジ時間 4,652 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
    l.append(l[1])
    l[1] = (l[0] + l[2]) // 2
    if l[0] == l[1]:
        break

for i in range(2):
    for j in range(3):
        print(l[i], m_l[j] - l[i])
        if int(input()) == 0:
            sys.exit()
            
0