Pagini recente » Cod sursa (job #1542746) | Cod sursa (job #2018834) | Clasament sdfdsf | Cod sursa (job #626664) | Cod sursa (job #1892314)
#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;
}