⌨️

[AtCoder]ABC-228|A - On and Off

2023/05/19に公開

設問ページ

提出結果

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


def main():
    s, t, x = getIntMap()

    if s < t:
        print('Yes' if s <= x < t else 'No')
    else:
        print('No' if t <= x < s else 'Yes')


if __name__ == "__main__":
    main()

Discussion