ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1257. Hyphenation

AC hardly!Poor my knowledge!HINT,come in
Posted by Love SJC 22 Mar 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