Untitled

Anonymous
plain_text
01/26/2023 1:29 PM
336 B
21
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("ИИ")==0): //"ИИ" not in "".join(slovo)
        k+=1
print(k)
Editor is loading...