Different answer while testing and submitting


#1

for test case:
99999
99999

when i run it as a custom input I get
A : "99999 "
B : "99999"
Your function returned the following output:
9999800001

But on testing it gives
A : "99999"
B : "99999"
Your function returned the following :
999890001
The expected returned value :
9999800001

Please resolve this issue.


#2

I have the exact same problem, using C++:


#3

Similar issue. Its giving correct output in devc++ but wrong in their env


#4

You must have been using some global variable.
Don’t use that.