結果

問題 No.513 宝探し2
ユーザー hiragnhiragn
提出日時 2022-12-02 09:10:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 24,424 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 03:08:13
合計ジャッジ時間 1,604 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
23,496 KB
testcase_01 AC 38 ms
23,580 KB
testcase_02 AC 37 ms
23,592 KB
testcase_03 AC 38 ms
24,012 KB
testcase_04 AC 39 ms
23,764 KB
testcase_05 AC 38 ms
23,856 KB
testcase_06 AC 38 ms
23,752 KB
testcase_07 AC 38 ms
23,880 KB
testcase_08 AC 38 ms
24,232 KB
testcase_09 AC 38 ms
23,808 KB
testcase_10 AC 39 ms
23,376 KB
testcase_11 AC 38 ms
24,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    print(0, 0)
    a = int(input())
    if a == 0:
        exit()

    print(0, 100000)
    b = int(input())
    if b == 0:
        exit()

    x = (a + b - 100000) // 2
    y = a - x
    print(x, y)


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