Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=7306
- alph = 'УЧЕНИК'
- cnt = 0
- for q in alph:
- for w in alph:
- for e in alph:
- for r in alph:
- for t in alph:
- s = q+w+e+r+t
- if s[0] == 'У' and s[4] == 'К':
- cnt += 1
- print(cnt)
Advertisement
Add Comment
Please, Sign In to add comment