atcoder#ABC094A. [ABC094A] Cats and Dogs
[ABC094A] Cats and Dogs
Score : points
Problem Statement
There are a total of cats and dogs. Among them, are known to be cats, but the remaining are not known to be either cats or dogs.
Determine if it is possible that there are exactly cats among these animals.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If it is possible that there are exactly cats, print YES
; if it is impossible, print NO
.
3 5 4
YES
If there are one cat and four dogs among the animals, there are cats in total.
2 2 6
NO
Even if all of the animals are cats, there are less than cats in total.
5 3 2
NO
Even if all of the animals are dogs, there are more than cats in total.