Cod sursa(job #3335628)

Utilizator baciu17Robert Baciu baciu17 Data 23 ianuarie 2026 08:59:52
Problema Text Scor 0
Compilator py Status done
Runda Arhiva de probleme Marime 0.24 kb
import re
file = open('cmmdc.in')
with open('cmmdc.in', 'r') as fin:
    text = fin.read()
words = re.findall(r"[a-zA-Z]+", text)
with open('cmmdc.out', 'w') as fout:
        fout.write(str(sum(len(word) for word in words) // len(words)))