結果

問題 No.514 宝探し3
ユーザー H3PO4H3PO4
提出日時 2022-05-18 08:18:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 206 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 24,348 KB
平均クエリ数 2.92
最終ジャッジ日時 2023-10-14 14:11:27
合計ジャッジ時間 2,021 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
24,036 KB
testcase_01 AC 34 ms
23,576 KB
testcase_02 AC 33 ms
23,412 KB
testcase_03 AC 33 ms
23,652 KB
testcase_04 AC 36 ms
24,348 KB
testcase_05 AC 33 ms
24,000 KB
testcase_06 AC 35 ms
23,652 KB
testcase_07 AC 33 ms
23,652 KB
testcase_08 RE -
testcase_09 AC 33 ms
23,832 KB
testcase_10 AC 34 ms
24,336 KB
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def query(x, y):
    print(x, y, flush=True)
    res = int(input())
    return res


MAX = 1000000000

d1 = query(0, 0)
d2 = query(0, MAX)

ax = (d1 + d2 - MAX) // 2
ay = (d1 - d2 + MAX) // 2
query(ax, ay)
0