結果

問題 No.513 宝探し2
ユーザー 👑 tamatotamato
提出日時 2020-05-08 16:35:10
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 649 bytes
コンパイル時間 782 ms
コンパイル使用メモリ 87,472 KB
実行使用メモリ 87,964 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-24 02:37:28
合計ジャッジ時間 3,012 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
87,964 KB
testcase_01 AC 88 ms
87,844 KB
testcase_02 AC 90 ms
87,596 KB
testcase_03 AC 87 ms
87,392 KB
testcase_04 AC 92 ms
87,816 KB
testcase_05 AC 88 ms
87,316 KB
testcase_06 AC 89 ms
87,356 KB
testcase_07 AC 90 ms
87,180 KB
testcase_08 AC 93 ms
87,360 KB
testcase_09 AC 91 ms
87,212 KB
testcase_10 AC 93 ms
87,288 KB
testcase_11 AC 91 ms
87,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    print(0, 0)
    sys.stdout.flush()
    D = int(input())
    if D == 0:
        exit()
    if D <= 100000:
        print(0, D)
        sys.stdout.flush()
        d = int(input())
        if d == 0:
            exit()
        print(d//2, D - d//2)
        sys.stdout.flush()
        exit()
    else:
        print(D - 100000, 100000)
        sys.stdout.flush()
        d = int(input())
        if d == 0:
            exit()
        print(D - 100000 + d // 2, 100000 - d//2)
        sys.stdout.flush()
        exit()


if __name__ == '__main__':
    main()
0