Quantity of words
There is some offer in unknown language. To count quantity of words in it. Letters of the alphabet in unknown language are letters of the latin alphabet and the Arabian figures. It is guaranteed, that other symbols, except for blanks and punctuation marks in the offer is not present.
Specifications
Input
In the only thing to a line the offer in unknown language is set.
Output
Singular - quantity of words in it.
Problem information
Time Limit: 0.1 secondsMemory Limit: 64 MB
Balls for the passed test: 10
Complexity: 48% 295/569
Classes: Algorithms on strings
Example
Example inputHello, world! |
Example output2 |
| ← Teleport (RU) | Problems | Word the champion → |
