Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- count = 0
- for x in product('МИМИКРИЯ', repeat = 8):
- s = ''.join(x)
- if s.count('М') == 2 and s.count('И') == 3 and s.count('К') == s.count('Р') == s.count('Я') == 1:
- count += 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment