Now I just changed all the data types to ‘int’ by changing it to ‘typedef int ll’ and everything worked fine code2
In some other submission I changed the string declaration to char and again everything worked fine [code3](https://codeforces.com/contest/1363/submission/82147815)
I am not really able to understand the failure of code1. Please help me out !!!
** For this problem my friend too faced the same issue. ***
Passed code — just changed long long int to int