Problem link: CS01
Here is my solution: CodeChef: Practical coding for everyone
I just hope it’s not related to the output description (I’ve tried nearly every combination)
Interesting: not a single AC submission, including in the original contest
One possible thing that could be wrong is that there might be some trailing whitespace after the number of testcases - try replacing the cin.ignore()
with my suggestion here.
Since no one seems to have completed it, it could be that the testcases are simply wrong
I can’t see anything wrong with your solution, personally - anyone else?
Looks like wrong or ill-formatted testcases to me
What’s weirder is that I’ve gone through most of the wrong submissions and the codes were far from solving the actual question: they range from checking if the given two strings (assuming it’s given somewhere) are anagrams… to things which have no connections to the question whatsoever. It’s been a little frustrating, to be honest.