Cod sursa(job #2603225)
Utilizator | Data | 18 aprilie 2020 19:04:54 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
char c;
int lg,cuv;
bool ok;
int main()
{
while(fin.get(c)){
if(('a'<=c and c<='z') or ('A'<=c and c<='Z')){
if(ok==0) cuv++;
ok=1;
lg++;
} else ok=0;
}
fout << lg/cuv;
return 0;
}