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

Обсуждение задачи 1257. Переносы

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

AC hardly!Poor my knowledge!HINT,come in Love SJC 22 мар 2008 17:32
I think this problem is terrible,but it's good for you to be careful.
I hve tried to readln(String) and read(char).
I WA at 10 when I used string,I don't know why.But now I have ACed with char,I can help you who want to AC this problem.
TEST2
when the line has 40 symbol,don't write a carriage return at once,because there may be one in the input text.
sample
0
aaaaa...(forty a)

test4
you may WA at this test when you use char
there maybe no carriage return in the end of test,
so you shoule write the last word
sample
0
abc
ab(with no carriage return)

test8
you must use seekeof
be careful,there may be empty lines in the end,use eof please
sample
0
aaa







test13
I think it's the best helpful test.
it had say that if S1S2 in the end of a word,you can carry the s2 to the next line with a '-' behind s1.
do you use POS?
POS only returned the first place when a string appeared.
plese have a munual check.
sample
1
cc-cc
ccccccccc...(41 c)

good luck.poor for my english.I'm new.

Edited by author 22.03.2008 17:45