Pagini recente » Monitorul de evaluare | Istoria paginii utilizator/utcn_littleendian | Istoria paginii utilizator/lmfao | Istoria paginii utilizator/vladdy47 | Cod sursa (job #565547)
Cod sursa(job #565547)
#include <cstdio>
#include <cstring>
#include <cctype>
using namespace std;
FILE *fin=freopen("text.in","r",stdin);
FILE *fout=freopen("text.out","w",stdout);
int main()
{
char s[1000000];
int nrc=0,l=0;
while(!feof(stdin))
{
gets(s);
int lg=strlen(s);
for(int i=0;i<lg;i++)
{
if(isalpha(s[i])){
l++;
if(!isalpha(s[i+1]))
nrc++;
}
}
}
printf("%d",l/nrc);
return 0;
}