My code works well on codechef editor but shows and nzec error on submission?
This is the link of my code.
this is not the link of your solution bro
Your last submission shows WA. Try
1 2 2 1 2 0 1
The answer should be 0.
Thanks a lot for your help guys!! Found my mistake