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 1398. Bishop and Pawn

Test#10 incorrect...
Posted by RockBeat 1 Jan 2007 07:28
........
........
    char a[3],b[3];
    scanf("%s%s",b,a);
    x0=*a-'a',y0=a[1]-'1';
    x1=*b-'a',y1=b[1]-'1';
    if(x0<0||x0>7||y0<0||y0>6||
        x1<0||x1>7||y1<0||y1>7)
            x0/=0;
........
........
This code receive Crash (integer division by zero).

Edited by author 01.01.2007 07:28
Re: Test#10 incorrect...
Posted by RockBeat 1 Jan 2007 07:53
Algebraic chess notation(srandart chess notation):
...First, the files (that is, lines running parallel to the direction the players are facing) are labelled with LOWERCASE letters a through h...

Test#10 has uppercase letters.
To admins: please fix bug.
Re: Test#10 incorrect...
Posted by Kit 1 Jan 2007 12:46
It seems you are right, I have AC. Many thanks!
Re: Test#10 incorrect...
Posted by AlexF [USTU] 3 Jan 2007 16:06
I think Test#20 has uppercase letters, too!
It's not a bug - it's a feature =)
Posted by Vladimir Yakovlev (USU) 3 Jan 2007 17:00
It is just unfair (+)
Posted by Dmitry 'Diman_YES' Kovalioff 3 Jan 2007 23:41
The problem statement is unclear. It is not said that the letters might be capital. And the sample does not show it either. So the statement will be 99% misunderstood. That is why the authors should avoid such fuzzy expressions as "standard chess notation".

Surely, the problem statement (or the tests) should be fixed.
Tests have been fixed (+)
Posted by Vladimir Yakovlev (USU) 4 Jan 2007 01:28
Now tests contain only LOWERCASE latin letters.
Problem has been rejudged, 4 authors got AC.

Edited by author 04.01.2007 01:29