#include <stdio.h> #include <limits.h> void main() { int memory[10]={sizeof(char),sizeof(unsigned char),sizeof(short),sizeof(unsigned short),sizeof(int),sizeof(unsigned int),sizeof(long),sizeof(unsigned long),sizeof(long long),sizeof(unsigned long long)}; long long max[10]={CHAR_MAX,UCHAR_MAX,SHRT_MAX,USHRT_MAX,INT_MAX,UINT_MAX,LONG_MAX,ULONG_MAX,LLONG_MAX,ULLONG_MAX}; long long min[10]={CHAR_MIN,0,SHRT_MIN,0,INT_MIN,0,LONG_MIN,0,LLONG_MIN,0}; int d; scanf("%d",&d); printf("%d,%lld,%llu",memory[d-1],min[d-1],max[d-1]); }