⌨️

[AtCoder]ABC-242|A - T-shirt

2023/06/12に公開

設問ページ

提出結果

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

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

    print(1.0 if x <= a else 0.0 if x > b else (c / (b - a)))

if __name__ == "__main__":
    main()

Discussion