結果

問題 No.513 宝探し2
ユーザー convexineqconvexineq
提出日時 2021-02-11 01:18:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 183 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 87,480 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 02:51:08
合計ジャッジ時間 2,316 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
86,896 KB
testcase_01 AC 83 ms
87,144 KB
testcase_02 AC 82 ms
86,952 KB
testcase_03 AC 87 ms
87,208 KB
testcase_04 AC 81 ms
87,000 KB
testcase_05 AC 83 ms
86,976 KB
testcase_06 AC 81 ms
86,908 KB
testcase_07 AC 81 ms
87,136 KB
testcase_08 AC 81 ms
87,400 KB
testcase_09 AC 82 ms
87,480 KB
testcase_10 AC 93 ms
86,980 KB
testcase_11 AC 84 ms
87,024 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**5
a = ask(0,0)
b = ask(0,c) - c
ask((a+b)//2,(a-b)//2)
0