結果

問題 No.513 宝探し2
ユーザー daku9640daku9640
提出日時 2018-08-27 01:42:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 24,384 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 01:53:08
合計ジャッジ時間 1,558 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
23,652 KB
testcase_01 AC 38 ms
23,568 KB
testcase_02 AC 38 ms
23,520 KB
testcase_03 AC 36 ms
24,288 KB
testcase_04 AC 35 ms
23,576 KB
testcase_05 AC 36 ms
23,764 KB
testcase_06 AC 37 ms
24,060 KB
testcase_07 AC 36 ms
23,640 KB
testcase_08 AC 38 ms
23,732 KB
testcase_09 AC 37 ms
24,276 KB
testcase_10 AC 36 ms
24,384 KB
testcase_11 AC 38 ms
23,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(x, y):
    print(x, y)
    return int(input())
def solve():
    l = int(1e9)
    a = f(0, 0)
    if (a != 0):
        b = f(0, l)
        x = (a + b - l) // 2
        y = a - x
        f(x, y)
solve()
0