Pagini recente » Cod sursa (job #1460876) | Statistici mihaela eugenia roman (hemmiha) | Diferente pentru utilizator/loo_k01 intre reviziile 65 si 59 | Cod sursa (job #1788229) | Cod sursa (job #1089938)
#include <cstdio>
#include <cctype>
using namespace std;
int nrlit,nrcuv;
char c;
bool ok=false;
int main ()
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
while (scanf("%c",&c)!=EOF)
{
if (isalpha(c))
{
nrlit++;
if (!ok)
{
nrcuv++;
ok=true;
}
}
else ok=false;
}
printf("%d",nrlit/nrcuv);
return 0;
}