Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import *
- A = []
- for p in permutations('ПРОСТО'):
- n = ''.join(p)
- if 'ОО' not in n and n not in A:
- A.append(n)
- print(len(A))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement