#1387. C++-初识C++-数据类型取值范围

C++-初识C++-数据类型取值范围

Background

Description

image

Format

Input

Output

Samples


sizeof(bool)          : 1
sizeof(char)          : 1
sizeof(int)           : 4
sizeof(unsigned int)  : 4
sizeof(short int)     : 2
sizeof(int)           : 4
sizeof(long long)     : 8
sizeof(float)         : 4
sizeof(double)        : 8
min(bool)          : 0
max(bool)          : 1
min(int)           : -2147483648
max(int)           : 2147483647
min(unsigned int)  : 0
max(unsigned int)  : 4294967295
min(short int)     : -32768
max(short int)     : 32767
min(int)           : -2147483648
max(int)           : 2147483647
min(long long)     : -9223372036854775808
max(long long)     : 9223372036854775807
min(float)         : 1.17549e-038
max(float)         : 3.40282e+038
min(double)        : 2.22507e-308
max(double)        : 1.79769e+308

Limitation

1s, 1024KiB for each test case.