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

Обсуждение задачи 1427. SMS

Safe Bird Case 7 is indeed right. But I think case17+18 must be wrong [2] // Задача 1427. SMS 12 фев 2006 14:57
case 7 is indeed right.
"fscanf("%d %d\n") and fgets" is INCORRECT.
not due to the bug of test case, but due to your wrong algorithm!


but, case 17 and 18 must be wrong.
    for (;;)
    {
        char ch=fgetc(Fin);
        if (ch=='\n') break;
        ...
    }
these codes will TLE on 17. there mustn't be '\n' in case 17.


for case 18, my C++ program is nearlly the same as my teammates' pascal program, but my fails on 18, his one gets AC.
Love_** now this problem is "locked" ..? [1] // Задача 1427. SMS 12 фев 2006 17:03