why this code will not passing all cases…
Tuple question in codechef long
You are missing a lot of cases there are 1 cases for and =0, 6 cases for and=1, 21 cases for ans =2, and for rest ans is 3. So make sure you take all the cases.
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.