Please tell bug
just renamed long long to int.
hence in line line i am using altrenate of int (int32_t) beucase main can only return int
so that means everywhere in my main … int -> long long ? if yes, why you did this ?
I couldn’t get this point
to avoid overflow,ans can exceed range of int
if i will use int then it will get replaced by long lonng
to avoid this i m using alternate name int32_t
how to read this name to understand its meaning
google it…
…
…
@aman212yadav
If I search on google most of the time I couldn’t understand due to the terminologies use and I end up wasting more time with low chance of clearing my doubt…in contrast you can explain me in laymen terms…
pls explain !
int is refering the datatye and the number written with it is the size .
so int32_t is int whose size is 32 bit.
what does ‘t’ stand for ?
So is by default in int main…int -> 32-bit ? (as my system is 64-bit)
If I undo these cnanges you made and then run:-
codeforces ide -> long int output is WRONG
Sublime text -> works CORRECTLY
why this difference in behaviour ?
…
it stand for typedef
depend on other factors as well
read the difference between long and long long. their behavior is not same.
also its sytem dependent
@aman212yadav
I didn’t mean long as datatype…see the sample input of this question…one of the output values is a very big integer…
all I’m saying is if I remove the commands:-
-> #define int long long
-> int32_t
then on sublime still my output is coming correct…but on codeforces ide the large value is wrong (other small values are correct)
What’s is the reason for this difference ?
…
becuase of overflow it will give wrong result, i dont know why it is working on ur ide, almost every other online ide it is showing wrong answer.
is ur int taking 64bit space?
@aman212yadav
I don’t know…I just use int main() (as I have been using since beginning of this course)
I use sublime text editor + minGW -> my system is 64-bit