Pagini recente » Cod sursa (job #3213009) | Cod sursa (job #1068923) | Cod sursa (job #1181521) | Cod sursa (job #240508) | Cod sursa (job #1915431)
#include <cstdio>
using namespace std;
int main()
{
freopen("text.in", "r", stdin);
freopen("text.out", "w", stdout);
char c;
int LT = 0, NC = 0;
bool inceput = 0;
while(scanf("%c", &c) != EOF)
{
if(('a' <= c && c <= 'z')||('A' <= c && c <= 'Z'))
{
++ LT;
inceput = 1;
}
else
{
if(inceput)
{
inceput = 0;
++ NC;
}
}
}
if(inceput)
++ NC;
printf("%d", LT/NC);
return 0;
}