Cod sursa(job #2774674)
Utilizator | Data | 12 septembrie 2021 11:59:19 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | c-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include<stdio.h>
int l,c,k;
char s;
int main()
{
freopen("text.in","r",stdin),freopen("text.out","w",stdout);
while(scanf("%c",&s)!=EOF)
if((s>='a'&&s<='z')||(s>='A'&&s<='Z')) {
if(!k)
++c;
++l,k=1;
} else
k=0;
printf("%d",l/c);
return 0;
}