Getting time = 0sec and memory = 0 mb in codechef starters

Hi!
This is the problem link -
https://www.codechef.com/viewsolution/47093559
Can you please tell me how is this possible to get 0 mb memory consumption.
If I am missing something then please correct me.

@cubefreak777 please help bro

else
{
cout << “NO”
<< “\n”;
return;
}

Here, you’re returning before taking all the string inputs.
I actually made the same mistake but fixed it before the end of the contest

1 Like

Because your submission is wrong.if your submission is wrong than this happen.
look at my submission:-
image

1 Like

CodeChef judge throws these values when your code fails for a very trivial case out of the hidden test-cases.

1 Like

Thank you

Thank you.

Thank you brother