Pagini recente » Cod sursa (job #752995) | Cod sursa (job #2931150) | Cod sursa (job #125132) | Cod sursa (job #2864753) | Cod sursa (job #1106086)
#include <stdio.h>
#include <string.h>
using namespace std;
int LEN,NRLIT,NRCUV;
int main()
{
freopen ("text.in","r",stdin);
freopen ("text.out","w",stdout);
int i,ok=0;
char c;
while (!feof(stdin))
{
scanf("%c",&c);
if ((c>='a' && c<='z') || (c>='A' && c<='Z'))
{
NRLIT++;
if (!ok)
{
NRCUV++;
ok=1;
}
}
else
ok=0;
}
printf("%ld\n",NRLIT/NRCUV);
fclose(stdin);
fclose(stdout);
return 0;
}