Most Likely Data Type
Time limit1sMemory limit1024 MB
Given an integer N, print the smallest type among short, int, and long long that can hold N exactly.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Sunrin likes writing efficient code, so he picks a data type in the following way. Find the data type Sunrin will choose.
Sunrin picks a data type by the following criteria.
- Pick the data type that can represent the value exactly and uses the least memory.
- The data type he can pick is one of
short,int, orlong long.
Input
An integer is given.
Output
Print the data type Sunrin will choose.
Constraints
- In other words, fits within the range of
long longin C++.