#abc345b. B - Integer Division Returns

B - Integer Division Returns

Score: 200200 points

问题陈述

给定一个整数 XX,其值在 1018-10^{18}101810^{18}(包括端点)之间,请打印 X10\left\lceil \dfrac{X}{10} \right\rceil。 在这里,a\left\lceil a \right\rceil 表示不小于 aa 的最小整数。

以上为大语言模型 kimi 翻译,仅供参考。

Problem Statement

Given an integer XX between 1018-10^{18} and 101810^{18}, inclusive, print X10\left\lceil \dfrac{X}{10} \right\rceil.
Here, a\left\lceil a \right\rceil denotes the smallest integer not less than aa.

Constraints

  • 1018X1018-10^{18} \leq X \leq 10^{18}
  • XX is an integer.

Input

The input is given from Standard Input in the following format:

XX

Output

Print X10\left\lceil \dfrac{X}{10} \right\rceil as an integer.

Sample Input 1

27

Sample Output 1

3

The integers not less than 2710=2.7\frac{27}{10} = 2.7 are 3,4,5,3, 4, 5, \dots. Among these, the smallest is 33, so 2710=3\left \lceil \frac{27}{10} \right \rceil = 3.

Sample Input 2

-13

Sample Output 2

-1

The integers not less than 1310=1.3\frac{-13}{10} = -1.3 are all positive integers, 00, and 1-1. Among these, the smallest is 1-1, so 1310=1\left \lceil \frac{-13}{10} \right \rceil = -1.

Sample Input 3

40

Sample Output 3

4

The smallest integer not less than 4010=4\frac{40}{10} = 4 is 44 itself.

Sample Input 4

-20

Sample Output 4

-2

Sample Input 5

123456789123456789

Sample Output 5

12345678912345679

update @ 2024/5/16 17:16:40

}