結果

問題 No.514 宝探し3
ユーザー convexineqconvexineq
提出日時 2021-02-11 01:19:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 1,091 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 87,600 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 09:45:22
合計ジャッジ時間 2,788 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
87,248 KB
testcase_01 AC 99 ms
86,900 KB
testcase_02 AC 98 ms
87,600 KB
testcase_03 AC 99 ms
87,332 KB
testcase_04 AC 96 ms
86,904 KB
testcase_05 AC 95 ms
86,672 KB
testcase_06 AC 95 ms
87,568 KB
testcase_07 AC 96 ms
87,148 KB
testcase_08 AC 97 ms
87,108 KB
testcase_09 AC 98 ms
87,412 KB
testcase_10 AC 97 ms
86,892 KB
testcase_11 AC 96 ms
87,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
def ask(x,y):
    print(x,y)
    sys.stdout.flush()
    a = int(input())
    if a: return a
    else: exit()

c = 10**9
a = ask(0,0)
b = ask(0,c) - c
ask((a+b)//2,(a-b)//2)
0