1 / 5
May 2009

in one of the problem PRIME AGAIN
when i used long long int for the variablles i got TLE

but when i changed it into unsigned i got AC.

So I want to know that does that make that much difference.
and please explain why the difference is there.
Thanx in advance
smiley

Unsigned means precisely that.. the number is unsigned. So a 64 bit signed integer can be anything from -2^63 to 2^63-1, a 64 bit unsigned integer can hold anything from 0 up to 2^64 - 1.

yes i know that.
but Why does the data type chosen for variable made so much difference.That i m not getting.
,ie,before when i was using long long int,i got TLE

but after using unsigned int in place where i used long long int ,I got Ac.

P.S. I know sizeof long long is greater than size of size of unsigned int

Please be a little more specific.
I dint get that line
" That depends on your code"
smile

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 37 28d

Want to read more? Browse other topics in C and C++ or view latest topics.