#abc239b. B - Integer Division
B - Integer Division
Score : points
问题描述
给定一个整数 ,其取值范围在 到 (包括两端点),请输出 。
以上为通义千问 qwen-max 翻译,仅供参考。
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.
Sample Input 1
47
Sample Output 1
4
The integers that do not exceed are all the negative integers, , and . The maximum integer among them is , so we have .
Sample Input 2
-24
Sample Output 2
-3
Since the maximum integer not exceeding is , we have .
Note that does not satisfy the condition, as exceeds .
Sample Input 3
50
Sample Output 3
5
The maximum integer that does not exceed is itself. Thus, we have .
Sample Input 4
-30
Sample Output 4
-3
Just like the previous example, .
Sample Input 5
987654321987654321
Sample Output 5
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.
update @ 2024/3/10 10:18:48