369 Numbers (https://hack.codingblocks.com/app/practice/8/838/problem)

I have a doubt in this quest
I am providing you with the link in which I have submitted my code for the quest all test cases are running fine but when I submit the code it shows me error.
Please help me out

hello @aavruty_dhir

look at the problem constrainst A and B can be of order 10^50 , which we cant store in primitive datatype like long long .

think different approach

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.