ACM模版

数据类型的取值范围

数据类型 取值范围
char -128 ~ 127 (1 Byte,大约3位)
short -32768 ~ 32767 (2 Bytes,大约五位)
unsigned short 0 ~ 65536 (2 Bytes,大约五位)
int -2147483648 ~ 2147483647 (4 Bytes,大约十位)
unsigned int 0 ~ 4294967295 (4 Bytes,大约十位)
long == int
long long -9223372036854775808 ~ 9223372036854775807 (8 Bytes,大约十九位)
unsigned long long 0 ~ 18446744073709551615(大约二十位)
__int64 == long long
unsigned __int64 == unsigned long long
double 1.7 * 10^308 (8 Bytes)

修正 2017.2.14 short范围修改