Variable(int) bits....
Posted: Thu Nov 25, 2004 3:00 pm
Could someone tell me the number of bits for the following variables (in the case of the online judge, obviously):
1.int (16 or 32)
2. long
3. long long
The reason I ask is that many problems say stuff like "input will be less than or equal to 32767" and in other cases "the result will fit into an integer" or "the result will be less than 2^31-1". In VC++ ints and longs are 32 bits. Is it the same with the online judge's compiler?
Any help is appreciated.
1.int (16 or 32)
2. long
3. long long
The reason I ask is that many problems say stuff like "input will be less than or equal to 32767" and in other cases "the result will fit into an integer" or "the result will be less than 2^31-1". In VC++ ints and longs are 32 bits. Is it the same with the online judge's compiler?
Any help is appreciated.