Problem link: https://www.codechef.com/problems/ORDERS
My code works with the given test data, but I keep getting WAs on submission. I even went to the extent of removing extra spaces and new lines, which I don’t think is necessary (don’t know, new here). Here’s my code:
My code: https://pastebin.com/46cpMbt2
Please point me in the right direction.