If the test2 is a hidden test, then you are unlucky to pass test1 because
you are not aware of such bug.
If the test1 is a visible test, then you are lucky to pass test1 because
you get more points in case you can't fix the problem.
--
You received this message because you are subscribed to
You replied twice and i wasn't sure what's the order you sent them.
In case you still don't understand why it is wrong to reset *polAdded *to
*false
*inside the for loop, let me know.
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To
That one's actually required. The purpose for pol added is to check whether
the current polyomino was added to the final map or not. The one outside
the for loop is there, in case there are no more polyominos to check.
On Thursday, 28 May 2020 20:59:11 UTC+2, porker2008 wrote:
>
> You have an
Actually, you're right... It is wrong. I guess it's more unlucky that it
passed the first test case then. Thanks for pointing it out.
On Thursday, 28 May 2020 20:59:11 UTC+2, porker2008 wrote:
>
> You have an extra *polAdded = false* that caused the wrong answer.
> You are lucky to pass
You have an extra *polAdded = false* that caused the wrong answer.
You are lucky to pass the first test case.
*for (int i = 0; i < pol.Count; i++) {*
*polAdded = false; // Remove this line*
*var tmpWall = new string[int.Parse(rc[0])];*
*finalwall.CopyTo(tmpWall, 0);*
*for (int