結果

問題 No.514 宝探し3
ユーザー 👑 KazunKazun
提出日時 2020-11-16 04:34:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 87,652 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 07:07:35
合計ジャッジ時間 2,785 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
87,060 KB
testcase_01 AC 104 ms
87,248 KB
testcase_02 AC 100 ms
86,824 KB
testcase_03 AC 98 ms
87,112 KB
testcase_04 AC 101 ms
87,544 KB
testcase_05 AC 100 ms
87,136 KB
testcase_06 AC 99 ms
87,404 KB
testcase_07 AC 95 ms
87,156 KB
testcase_08 AC 98 ms
87,228 KB
testcase_09 AC 96 ms
87,652 KB
testcase_10 AC 98 ms
87,492 KB
testcase_11 AC 97 ms
87,156 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