Untitled

 avatar
unknown
plain_text
2 years ago
216 B
2
Indexable
from itertools import*
k = 0
x = product("КАПИБР", repeat = 5)
for slovo in x:
    if(slovo[0] in "АИ" and slovo[-1] in "АИ" and slovo.count("А")<=1 and "".join(slovo).count("ИИ")):
        k+=1
print(k)
Editor is loading...