⌨️

[AtCoder]ABC-246|B - Get Closer

に公開

設問ページ

提出結果

import math


def getIntMap():
    return map(int, input().split())


def main():
    a, b = getIntMap()

    c = math.sqrt(a ** 2 + b ** 2)

    print(a / c, b / c)


if __name__ == "__main__":
    main()

Discussion