|
|
вернуться в форумTest#10 incorrect... ........ ........ 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... 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... Послано Kit 1 янв 2007 12:46 It seems you are right, I have AC. Many thanks! Re: Test#10 incorrect... I think Test#20 has uppercase letters, too! It's not a bug - it's a feature =) It is just unfair (+) 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 (+) Now tests contain only LOWERCASE latin letters. Problem has been rejudged, 4 authors got AC. Edited by author 04.01.2007 01:29 |
|
|