⌨️

[AtCoder]ABC-367|A - Shout Everyday

2024/08/30に公開

設問ページ

提出結果

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


def main():
    A, B, C = getIntMap()

    A = A - B if A > B else A - B + 24
    C = C - B if C > B else C - B + 24

    print("No" if A < C else "Yes")


if __name__ == "__main__":
    main()

Discussion