Advertisement
Bad_Programist

Untitled

Nov 28th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. a = input()
  2. b = a.split(' ')
  3. res = 0
  4. for i in range(len(b)):
  5.     for j in range(i + 1, len(b)):
  6.         if b[i] == b[j]:
  7.             res += 1
  8. print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement