結果

問題 No.514 宝探し3
ユーザー 👑 Kazun
提出日時 2020-11-16 04:34:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 82,132 KB
実行使用メモリ 70,280 KB
平均クエリ数 2.75
最終ジャッジ日時 2024-07-17 07:23:22
合計ジャッジ時間 2,012 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

def quest(x,y):
    print(x,y,flush=True)
    d=int(input())
    if d:
        return d
    else:
        exit(0)

M=10**9
p=quest(0,0);q=quest(M,0)
x,y=(M+p-q)//2,(-M+p+q)//2
quest(x,y)
0