Register
|
Login
HOME
PROBLEMSET
ROADMAP
COMPETITION
TOPIC
RANKING
GUIDE
MASHUP
ABOUT
CONTACT
Problem
Submit
Results
Word Count - MarisaOJ: Marisa Online Judge
Word Count
Time limit: 1000 ms
Memory limit: 256 MB
Print the number of words in given string
S
S
. ### Input - 1 line contains string
S
S
. ### Output - A single integer is the number of words in string
S
S
. ### Constraints -
1
≤
|
S
|
≤
1000
1
≤
|
S
|
≤
1000
. ### Example Input:
M
∗
e
r
S
p
a
r
k
M
∗
e
r
S
p
a
r
k
Output:
2
2
String
Length
Word Count
lowercase
Vowel
Digit sum
Strong password
Letter frequencies
Palindrome string
Palindrome substring
Caesar cipher
String occurences
Sum
String normalization
Run-length encoding
Expression
Topic
Basic
Rating
800
Solution (0)
Solution