Untitled
unknown
plain_text
3 years ago
216 B
5
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...