#abc226a. A - Round decimals
A - Round decimals
Score : points
问题描述
你将得到一个实数 ,该数最多可用三位小数表示,并且确实有三位小数。 请将 四舍五入到最接近的整数,并输出结果。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a real number , which is representable using at most three decimal digits, with three decimal digits.
Round to the nearest integer and print the result.
Constraints
- is representable using at most three decimal digits.
- has three decimal digits in input.
Input
Input is given from Standard Input in the following format:
Output
Print the integer resulting from rounding to the nearest integer.
Sample Input 1
3.456
Sample Output 1
3
The digit in the first decimal place of is , so we should round it down to .
Sample Input 2
99.500
Sample Output 2
100
Sample Input 3
0.000
Sample Output 3
0
update @ 2024/3/10 09:54:35