Submission under review : http://codeforces.me/contest/767/submission/24809891
For problem : http://codeforces.me/contest/767/problem/C
Which cases am I missing? I tried to implement the two conditions as given in the tutorial but the submission fails for test 9 (which is a large one, i cannot debug by viewing the case).
Thank you for your time and attention