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

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

RockBeat Test#10 incorrect... [6] // Задача 1398. Слон и пешка 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
RockBeat Re: Test#10 incorrect... [5] // Задача 1398. Слон и пешка 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.
Kit Re: Test#10 incorrect... [1] // Задача 1398. Слон и пешка 1 янв 2007 12:46
It seems you are right, I have AC. Many thanks!
AlexF [USTU] Re: Test#10 incorrect... // Задача 1398. Слон и пешка 3 янв 2007 16:06
I think Test#20 has uppercase letters, too!
Vladimir Yakovlev (USU) It's not a bug - it's a feature =) [2] // Задача 1398. Слон и пешка 3 янв 2007 17:00
Dmitry 'Diman_YES' Kovalioff It is just unfair (+) [1] // Задача 1398. Слон и пешка 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.
Vladimir Yakovlev (USU) Tests have been fixed (+) // Задача 1398. Слон и пешка 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