Problem Link -> https://codeforces.com/problemset/problem/20/C
please help me with this question i am unable to figure out what is wrong in my code as it is failing for 1 test case but working fine for some given cases.
Solution Link -> https://ide.codingblocks.com/s/470545
it really helped a lot!! i was stuck in this question for the whole day.