#AT2053. A - Not Overflow
A - Not Overflow
当前没有测试数据。
A - Not Overflow
Score : $100$ points
Problem Statement
You are given an integer $N$.
If $N$ is between $-2^{31}$ and $2^{31}-1$ (inclusive), print Yes
; otherwise, print No
.
Constraints
- $-2^{63} \leq N < 2^{63}$
- $N$ is an integer.
Input
Input is given from Standard Input in the following format:
Output
If $N$ is between $-2^{31}$ and $2^{31}-1$ (inclusive), print Yes
; otherwise, print No
.
10
Yes
$10$ is between $-2^{31}$ and $2^{31}-1$, so Yes
should be printed.
-9876543210
No
$-9876543210$ is less than $-2^{31}$, so No
should be printed.
483597848400000
No
$483597848400000$ is greater than $2^{31}-1$, so No
should be printed.