Farz0l1x

Untitled

May 8th, 2023
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. from itertools import product
  2.  
  3. count = 0
  4. for x in product(sorted('АКЛМНЯ'), repeat = 5):
  5. count += 1
  6. if x[0]+x[1] == 'КМ':
  7. print(count)
  8. break
Advertisement
Add Comment
Please, Sign In to add comment