Sanket and strings large testcase

Hello. I have understood the problem and coded it too. I was getting wrong answer in 2 test cases and right in one. So i downloaded the test cases and the string size was so large that even on using long long int my code did not run. Please help on how to solve test cases of this large size. I’m attaching my code with the downloaded test case https://ide.codingblocks.com/s/106473

Hello @jhanvimalik,

I submit your code and it is passing all the testcases.

Please, try to submit it once again.

yes thank you i dont know why it is not accepting on ide

Mark this doubt as resolved if your issues are resolved.

Else, if you still have any problem related the same, feel free to ask.:blush::blush: