Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import permutations
- arr = list(map(str, permutations('ШУРУМБУРУМ')))
- count = 0
- for i in arr:
- count += 1 if not 'УУ' in i else 0
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement