103451: [Atcoder]ABC345 B - Integer Division Returns

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:13 Solved:0

Description

Score: $200$ points

Problem Statement

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

Constraints

  • $-10^{18} \leq X \leq 10^{18}$
  • $X$ is an integer.

Input

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

$X$

Output

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


Sample Input 1

27

Sample Output 1

3

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


Sample Input 2

-13

Sample Output 2

-1

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


Sample Input 3

40

Sample Output 3

4

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


Sample Input 4

-20

Sample Output 4

-2

Sample Input 5

123456789123456789

Sample Output 5

12345678912345679

Input

Output

分数:200分

问题描述

给定一个在$-10^{18}$和$10^{18}$之间的整数$X$,包括这两个数在内,输出$\left\lceil \dfrac{X}{10} \right\rceil$。
这里,$\left\lceil a \right\rceil$表示不大于$a$的最小整数。

约束条件

  • $-10^{18} \leq X \leq 10^{18}$
  • $X$是一个整数。

输入

输入数据通过标准输入给出,格式如下:

$X$

输出

将$\left\lceil \dfrac{X}{10} \right\rceil$输出为一个整数。


样例输入1

27

样例输出1

3

不大于$\frac{27}{10} = 2.7$的整数是$3, 4, 5, \dots$。其中最小的是$3$,所以$\left \lceil \frac{27}{10} \right \rceil = 3$。


样例输入2

-13

样例输出2

-1

不大于$\frac{-13}{10} = -1.3$的整数是所有正整数,$0$和$-1$。其中最小的是$-1$,所以$\left \lceil \frac{-13}{10} \right \rceil = -1$。


样例输入3

40

样例输出3

4

不大于$\frac{40}{10} = 4$的最小整数是$4$本身。


样例输入4

-20

样例输出4

-2

样例输入5

123456789123456789

样例输出5

12345678912345679

加入题单

上一题 下一题 算法标签: