Farz0l1x

Untitled

Oct 20th, 2023
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from itertools import product
  2. count = 0
  3. m = []
  4. for p in product(sorted("КОМПЬЮТЕР"), repeat = 5):
  5.     count += 1
  6.     if p[0] != "Ь" and p.count("К") == 2:
  7.         m.append(count)
  8. print(max(m))
Advertisement
Add Comment
Please, Sign In to add comment