I was solving CHEFSTEP
My code passed the test case but it is giving WA.
Can someone please help me?
I was solving CHEFSTEP
My code passed the test case but it is giving WA.
Can someone please help me?
Consider the test input:
2
5 3
12 13 18 20 27216
5 3
12 13 18 20 27216
Edit: There seems to be an important point missing from the “Output:” section of the Problem Statement.
Thanks a lot ! I forgot to input a new line so that the next output comes in a new line.
To be fair, the Problem Statement doesn’t ask you to do that, though it should