5 / 5
Sep 2009

The problem says: "here may be any number of spaces and characters before, after, and between words. "
And it doesn't say it's one test case per line.
So what's the input format anyway ? Several words in a line ?

  • created

    Sep '09
  • last reply

    Sep '09
  • 4

    replies

  • 154

    views

  • 2

    users

  • 1

    link

Please specify the problem code DNPALIN when posting so that other people can find the problem without having to figure out which one is 3388.

As for the input itself - as it says, words can be separated by any number of whitespace. So don't assume they are all on one line, or all on different lines; there could be multiple lines, and multiple words on a line, but they are all separated by whitespace which is all you need to know.

Thanks smile
But what does "characters "suppose to mean in this sentence: "There may be any number of spaces and characters before, after, and between words."

Ah, right. That's a mistake in the problem statement itself; it is meant to say "spaces and characters", but that is being interpreted as an html tag. So spaces and line breaks.

Problem solved. Thanks smile

Suggested Topics

Want to read more? Browse other topics in JAVA based languages or view latest topics.