Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- count = 0
- for x in product('ВАЙФУ', repeat = 4):
- s = ''.join(x)
- if s[0] != 'Й' and 'ФВ' not in s and 'ВФ' not in s and len(set(s)) == len(s):
- count += 1
- print(count)
Advertisement
Add Comment
Please, Sign In to add comment