ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1398. Слон и пешка

Test#10 incorrect...
Послано RockBeat 1 янв 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...
Послано RockBeat 1 янв 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...
Послано Kit 1 янв 2007 12:46
It seems you are right, I have AC. Many thanks!
Re: Test#10 incorrect...
Послано AlexF [USTU] 3 янв 2007 16:06
I think Test#20 has uppercase letters, too!
It's not a bug - it's a feature =)
Послано Vladimir Yakovlev (USU) 3 янв 2007 17:00
It is just unfair (+)
Послано Dmitry 'Diman_YES' Kovalioff 3 янв 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 (+)
Послано Vladimir Yakovlev (USU) 4 янв 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