⌨️

[AtCoder]ABC-274|A - Batting Average

に公開

設問ページ

提出結果

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


def r(x):
    return '1.000' if x == 1.0 else "0.%03d" % ((x * 10000 + 5) // 10)


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

    print(r(b / a))


if __name__ == "__main__":
    main()

Discussion