結果

問題 No.513 宝探し2
ユーザー 👑 KazunKazun
提出日時 2020-11-16 04:33:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 87,732 KB
平均クエリ数 2.83
最終ジャッジ日時 2023-09-24 02:48:50
合計ジャッジ時間 2,475 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
87,384 KB
testcase_01 AC 95 ms
87,248 KB
testcase_02 AC 100 ms
87,352 KB
testcase_03 AC 95 ms
87,440 KB
testcase_04 AC 96 ms
86,960 KB
testcase_05 AC 96 ms
87,436 KB
testcase_06 AC 101 ms
87,508 KB
testcase_07 AC 96 ms
87,732 KB
testcase_08 AC 95 ms
87,336 KB
testcase_09 AC 96 ms
87,032 KB
testcase_10 AC 97 ms
86,980 KB
testcase_11 AC 95 ms
86,828 KB
権限があれば一括ダウンロードができます

ソースコード

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