Farz0l1x

Untitled

Jan 15th, 2024
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. from itertools import *
  2. count = 0
  3. for elem in product('ВЗГЛЯД', repeat = 4):
  4.     s = ''.join(elem)
  5.     if s.count('З') == 1 or s.count('З') == 2:
  6.         count += 1
  7. print(count)
Advertisement
Add Comment
Please, Sign In to add comment