Cod sursa(job #2316824)
Utilizator | Data | 12 ianuarie 2019 14:32:40 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.44 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin ("text.in");
ofstream fout ("text.out");
char c;
int ok,cuv,lit;
int main(){
while(fin.get(c)){
if((c>='a' && c<='z') || (c>='A' && c<='Z')){
if(ok==0)
cuv++;
lit++;
ok=1;
}
else
ok=0;
}
fout<<lit/cuv;
return 0;
}