1. right; this means the input should be a blank line, not the result of ignoring characters, spaces and newlines.
2. The '!' and '.' are ignored, resulting in a sequence of spaces that are replaced by one space. If it's at the end of a sentence, that space would be ignored. But be careful with the distinction between sentence and line:
Code: Select all
some text more letters
contains two sentences, one with 5 lines and one with 1 line. The first occurrence of " ! ." will be concatenated with the succeeding newline to form one space at the start of the sentence. The second occurrence will be concatenated with the preceeding and the succeeding newline to form one space. The third occurrence will be ignored (together with two newlines) because it's at the end of the sentence. So both sentences will be interpreted the same.
3. 9, obviously.
4. Indetermined (but 256 should be more than enough for a line; a sentence can be (much) longer).
I might have made an error in the input file. The last sentence in the input is followed by a blank line and an end of file ("....bla bla bla<NEWLINE><NEWLINE><EOF>"), which might lead some programs to print "0" as the last answer. There shouldn't be one though, so I'll ask the judges to change it to "...bla bla bla<EOF>".
Since the testset is new, and Ruben an I are the only ones accepted, it can't be ruled out that there is a mistake. If you want you can PM me your code and I can verify it with the judge's input.