atcoder#ABC239B. [ABC239B] Integer Division
[ABC239B] Integer Division
Score : points
Problem Statement
Given an integer between and (inclusive), print .
Notes
For a real number , denotes "the maximum integer not exceeding ". For example, we have $\left\lfloor 4.7 \right\rfloor = 4, \left\lfloor -2.4 \right\rfloor = -3$, and . (For more details, please refer to the description in the Sample Input and Output.)
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print . Note that it should be output as an integer.
47
4
The integers that do not exceed are all the negative integers, , and . The maximum integer among them is , so we have .
-24
-3
Since the maximum integer not exceeding is , we have . Note that does not satisfy the condition, as exceeds .
50
5
The maximum integer that does not exceed is itself. Thus, we have .
-30
-3
Just like the previous example, .
987654321987654321
98765432198765432
The answer is . Make sure that all the digits match.
If your program does not behave as intended, we recommend you checking the specification of the programming language you use. If you want to check how your code works, you may use "Custom Test" above the Problem Statement.