Can someone please list all the constraints. I included each and every condition but still it’s giving wrong answer.
Use long long int datatype.
I hope it will help, I have faced the same.
You never need to do validation part on given constraints.
Given constraints are always followed by Codechef in all testcases.
bhavesh_munot: Do you know that you’re breaking the rules by hinting towards a solution?
I am sorry ,i am going to delete this post.