Advertisement
Farz0l1x

Untitled

Feb 27th, 2024
934
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. from itertools import *
  2. A = []
  3. for p in permutations('ПРОСТО'):
  4.     n = ''.join(p)
  5.     if 'ОО' not in n and n not in A:
  6.         A.append(n)
  7. print(len(A))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement