Easy
How Many Different?
Read words and add each to a set with
add(). Print the size of the set.Input
One line.
Output
One integer.
Sample 1
Input
a b a c b
Output
3
Sample 2
Input
x
Output
1
Output appears hereadd(). Print the size of the set.One line.
One integer.
a b a c b
3
x
1
Output appears here