ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1229. Strong Brickwork

test 4 is wrong, or wrong checker
Posted by stdio 27 May 2008 02:26
before output I check arrays:

    for(i = 0; i < n; i++)
        for(j = 1; j < m; j++)
            if( a[i][j-1] == a[i][j] && b[i][j-1] == b[i][j] )
                while(1);

    for(i = 1; i < n; i++)
        for(j = 0; j < m; j++)
            if( a[i-1][j] == a[i][j] && b[i-1][j] == b[i][j] )
                while(1);

and I have wa4, not TL
Re: test 4 is wrong, or wrong checker
Posted by Howard Liu 27 May 2008 10:34
Did you number the bricks correctly?
Re: test 4 is wrong, or wrong checker
Posted by stdio 27 May 2008 11:24
I numbered bricks by squares:
xx
yy

or
xy
xy

Maybe it wrong?
Re: test 4 is wrong, or wrong checker
Posted by Sandro (USU) 27 May 2008 11:43
Use int instead of char. There can be numbers up to 5000 in the answer.
Re: test 4 is wrong, or wrong checker
Posted by stdio 27 May 2008 11:49
Thank you! AC)