結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
24,180 KB
testcase_01 AC 38 ms
23,664 KB
testcase_02 AC 33 ms
23,760 KB
testcase_03 AC 31 ms
23,468 KB
testcase_04 AC 30 ms
23,552 KB
testcase_05 AC 31 ms
24,192 KB
testcase_06 AC 32 ms
24,384 KB
testcase_07 AC 32 ms
23,352 KB
testcase_08 AC 31 ms
23,964 KB
testcase_09 AC 32 ms
24,348 KB
testcase_10 AC 32 ms
23,728 KB
testcase_11 AC 32 ms
23,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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