Pagini recente » Cod sursa (job #3031042) | Cod sursa (job #2556786) | Cod sursa (job #2755579) | Cod sursa (job #156470) | Cod sursa (job #2393955)
#include <cstdio>
#include <iostream>
#define DN 1024*1025
using namespace std;
char x;
int main()
{
int nrcuv=0,nrlitere=0;
freopen("text.in","r", stdin);
freopen("text.out","w", stdout);
bool ok=false;
while(!feof(stdin))
{
scanf("%c",&x);
ok=false;
while((x>='a' && x<='z') || (x>='A' && x<='Z'))
{
nrlitere++;
ok=true;
scanf("%c",&x);
}
if(ok==true) nrcuv++;
}
printf("%d",nrlitere/nrcuv);
fclose(stdin);
fclose(stdout);
return 0;
}