I tried the problem as explained in the tutorial, but I’m not getting the correct output, I really have no clue why.
Please let me know where I’m going wrong?
Question - https://hack.codingblocks.com/contests/c/718/1274
My Code - https://ide.codingblocks.com/s/98478
PS: I’m just solving the problem for a single test case.