100 atcoder#ABC233A. [ABC233A] 10yen Stamp
[ABC233A] 10yen Stamp
Score : points
Problem Statement
Takahashi wants to send a letter to Santa Claus. He has an envelope with an -yen (Japanese currency) stamp stuck on it. To be delivered to Santa Claus, the envelope must have stamps in a total value of at least yen. Takahashi will put some more -yen stamps so that the envelope will have stamps worth at least yen in total. At least how many more -yen stamps does Takahashi need to put on the envelope?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
80 94
2
- After adding zero -yen stamps to the -yen stamp, the total is yen, which is less than the required amount of yen.
- After adding one -yen stamp to the -yen stamp, the total is yen, which is less than the required amount of yen.
- After adding two -yen stamps to the -yen stamp, the total is yen, which is not less than the required amount of yen.
1000 63
0
The envelope may already have a stamp with enough value.
270 750
48