Author: | М. Спорышев | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 512 Mb | |
Output file: | Standard output |
Young programmer Alice does not like integers number K.
Alice wants to know number of integers in range from 1 to N (inclusive) not divisible by K.
Input contains two integer numbers N and K.
Output a single integer — number of integers not divisible by K.
2 ≤ N ≤ 109
1 ≤ K ≤ 100
No. | Standard input | Standard output |
---|---|---|
1 |
|
|
2 |
|
|
Input file: | Standard input | Time limit: | 1 sec | |
Output file: | Standard output | Memory limit: | 512 Mb |
Young programmer Vasya writes a "hello world" program in a simple programming language. Program consists of a single line and should look like that:
print("Hello,World")
Vasya is very bad at typing. While trying to enter the line above,
he pressed letter keys L times, special character keys C times
(including quotes, comma and parentheses).
Vasya also pressed backspace
key B times, erasing a single character every time.
Your program must determine if it is possible in principle that Vasya achieved the exact text above.
Input file contains integers L, C, B.
Output file must contain a single line YES
or NO
.
0 ≤ L, C, B ≤ 100
L + C ≥ B
No. | Standard input | Standard output |
---|---|---|
1 |
|
|
2 |
|
|