Farz0l1x

Untitled

Mar 26th, 2023
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. from itertools import product
  2. count = 0
  3. for x in product('МИМИКРИЯ', repeat = 8):
  4.     s = ''.join(x)
  5.     if s.count('М') == 2 and s.count('И') == 3 and s.count('К') == s.count('Р') == s.count('Я') == 1:
  6.         count += 1
  7. print(count)
Advertisement
Add Comment
Please, Sign In to add comment