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