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

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

Показать все сообщения Спрятать все сообщения

Is test 7 valid? Ionel Corneliu Gog 11 фев 2006 14:47
Please check test 7. I submitted 8 times and I can pass it. I read with gets,fgets.. I think it doesn't have EOLN('\n').
No, it has (-) Dmitry 'Diman_YES' Kovalioff 11 фев 2006 14:50
Re: No, it has (-) Ionel Corneliu Gog 11 фев 2006 15:08
That's crappy. If you read like this: scanf("%d%d\n",&n,&m)... it doesn't work and if you read like this scanf("%d%d",&n,&m);gets(line);.. is working.. Can explain me why is this difference?
About test generation (-) Dmitry 'Diman_YES' Kovalioff 11 фев 2006 15:14
All the tests:
1) were typed in Windows Notepad manually
or
2) were generated by Delphi program via Writeln() procedure
Re: No, it has (-) Fly [Yaroslavl_SU] 11 фев 2006 15:38
It's true. Input is BAD!!!
No, it has (-) pavlodar_lyceum8_5 11 фев 2006 15:40
Input is correct. It is the problem of C++ if the code works wrong (-) Dmitry 'Diman_YES' Kovalioff 11 фев 2006 15:41
Is "scanf( "\n" );" == "gets( line );"???
Why not?
I've not very much exp. in C, but see this bug first time. Maybe, it would be better to read by streams?
it is NOT a bug, but a TRICKY case Safe Bird 12 фев 2006 14:41
completely not. Safe Bird 12 фев 2006 14:41