scripts/ege/Проверочная по 0/8.py

13 lines
374 B
Python
Raw Normal View History

2023-05-05 00:45:01 +03:00
alf = "алпця"
cnt = 1
for a in alf:
for b in alf:
for c in alf:
for d in alf:
for e in alf:
w = a + b + c + d + e
if w.count("а") <= 1 and w.count("ц") == 2 and w.count("л") == 0:
print(cnt)
raise
cnt += 1