Wrong answer every time

Hey guys can anyone help me all the test cases are working fine bit when input is larger than 10e12
my code just shows garbage value or something negative.

1 Like

If you are playing with integers in c,c++,c++14 I think you should use %lld (long long int) instead of %d(int) in your code.
I have no Idea about any other language so best of luck.

1 Like

let me try first

oh thanks man.