nq1s788

8 кол-во слов

Dec 17th, 2025 (edited)
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/problem?id=7306
  2. alph = 'УЧЕНИК'
  3. cnt = 0
  4. for q in alph:
  5.     for w in alph:
  6.         for e in alph:
  7.             for r in alph:
  8.                 for t in alph:
  9.                    s = q+w+e+r+t
  10.                    if s[0] == 'У' and s[4] == 'К':
  11.                         cnt += 1
  12. print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment