Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. from sys import stdin
  2.  
  3. words = {}
  4.  
  5. for line in stdin:
  6.     words = line.strip().split(' ')
  7.     for word in words:
  8.         if word not in words:
  9.             words[word] = 1
  10.  
  11. print(len(words))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement