Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #https://inf-ege.sdamgia.ru/problem?id=68241
- sogl = 'СКНР'
- alph = 'АЕКНРС'
- answ = 0
- k = 1
- for q in alph:
- for w in alph:
- for e in alph:
- for r in alph:
- for t in alph:
- for y in alph:
- for u in alph:
- for i in alph:
- for o in alph:
- for p in alph:
- s = q + w + e + r + t + y + u + i + o + p
- if k % 3 == 0 and s[0] in sogl and s.count('Р') == 1:
- answ += 1
- k += 1
- print(answ)
Advertisement
Add Comment
Please, Sign In to add comment