結果

問題 No.514 宝探し3
ユーザー c-yanc-yan
提出日時 2020-11-24 00:18:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 24,528 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 07:10:44
合計ジャッジ時間 3,131 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 39 ms
23,664 KB
testcase_06 WA -
testcase_07 AC 39 ms
23,748 KB
testcase_08 AC 40 ms
23,948 KB
testcase_09 AC 39 ms
24,096 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def query(x, y):
    print(x, y)
    result = int(input())
    if result == 0:
        exit()
    return result

a = query(0, 0)
b = query(1000000000, 0)
AX = (1000000000 - a + b) // 2
AY = a - AX
query(AX, AY)
0