#abc226a. A - Round decimals

A - Round decimals

Score : 100100 points

问题描述

你将得到一个实数 XX,该数最多可用三位小数表示,并且确实有三位小数。 请将 XX 四舍五入到最接近的整数,并输出结果。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given a real number XX, which is representable using at most three decimal digits, with three decimal digits.
Round XX to the nearest integer and print the result.

Constraints

  • 0X<1000 \leq X < 100
  • XX is representable using at most three decimal digits.
  • XX has three decimal digits in input.

Input

Input is given from Standard Input in the following format:

XX

Output

Print the integer resulting from rounding XX to the nearest integer.

Sample Input 1

3.456

Sample Output 1

3

The digit in the first decimal place of 3.4563.456 is 44, so we should round it down to 33.

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