Farz0l1x

Untitled

Jan 15th, 2024
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. from itertools import *
  2. count = 0
  3. A = []
  4. for elem in product('БИТКОИН', repeat = 7):
  5.     s = ''.join(elem)
  6.     if s.count('Б') == s.count('Т') == s.count('К') ==s.count('О') == s.count('Н') == 1 and s.count('И') == 2 and s not in A:
  7.         A.append(s)
  8. print(len(A))
Advertisement
Add Comment
Please, Sign In to add comment