What is wrong with this question?

Problem link: CS01
Here is my solution: https://www.codechef.com/viewsolution/28103698
I just hope it’s not related to the output description (I’ve tried nearly every combination) :pleading_face:

Interesting: not a single AC submission, including in the original contest :slight_smile:

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 :man_shrugging:

3 Likes

Thanks @ssjgz, but it’s still not working. I’m pretty sure the code is correct, or is it :thinking:

1 Like

I can’t see anything wrong with your solution, personally - anyone else?

1 Like

Looks like wrong or ill-formatted testcases to me :man_shrugging:

1 Like

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.