102370: [AtCoder]ABC237 A - Not Overflow

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

Description

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:

$N$

Output

If $N$ is between $-2^{31}$ and $2^{31}-1$ (inclusive), print Yes; otherwise, print No.


Sample Input 1

10

Sample Output 1

Yes

$10$ is between $-2^{31}$ and $2^{31}-1$, so Yes should be printed.


Sample Input 2

-9876543210

Sample Output 2

No

$-9876543210$ is less than $-2^{31}$, so No should be printed.


Sample Input 3

483597848400000

Sample Output 3

No

$483597848400000$ is greater than $2^{31}-1$, so No should be printed.

Input

题意翻译

给定 $ N $,输出 $ N $ 是否在 ```int``` 范围内,输出 ```Yes``` 或 ```No```。

Output

得分:100分 部分 问题描述 给你一个整数 N 。如果 N 在 -2^31 和 2^31-1(包括)之间,打印 Yes ;否则,打印 No 。 部分 约束 * -2^63 <= N < 2^63 * N 是一个整数。 输入 输入格式如下: N 输出 如果 N 在 -2^31 和 2^31-1(包括)之间,打印 Yes ;否则,打印 No 。 样例输入 1 10 样例输出 1 Yes 10 在 -2^31 和 2^31-1 之间,因此应打印 Yes 。 样例输入 2 -9876543210 样例输出 2 No -9876543210 小于 -2^31 ,因此应打印 No 。 样例输入 3 483597848400000 样例输出 3 No 483597848400000 大于 2^31-1 ,因此应打印 No 。

加入题单

算法标签: