Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import *
- count = 0
- A = []
- for elem in product('БИТКОИН', repeat = 7):
- s = ''.join(elem)
- if s.count('Б') == s.count('Т') == s.count('К') ==s.count('О') == s.count('Н') == 1 and s.count('И') == 2 and s not in A:
- A.append(s)
- print(len(A))
Advertisement
Add Comment
Please, Sign In to add comment