結果

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

テストケース

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

ソースコード

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

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