Untitled

Anonymous
plain_text
01/26/2023 1:26 PM
288 B
15
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...