Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import product
- count = 0
- m = []
- for p in product(sorted("КОМПЬЮТЕР"), repeat = 5):
- count += 1
- if p[0] != "Ь" and p.count("К") == 2:
- m.append(count)
- print(max(m))
Advertisement
Add Comment
Please, Sign In to add comment