Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import *
- a = permutations('СОТКАПЛЗ', 5)
- c = 0
- for i in a:
- s = ''.join(i)
- if(s[-1] not in ['О', 'А']) and ('ЗЛО' not in s):
- c += 1
- print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement