Mai intai trebuie sa te autentifici.
Cod sursa(job #2198396)
Utilizator | Data | 24 aprilie 2018 13:47:27 | |
---|---|---|---|
Problema | Text | Scor | 50 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
#include <fstream>
#include <string.h>
using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
int main()
{
char chr;
int h=0,cuv=1;
while(fin.get(chr))
{
if((chr<=90&&chr>=65)||(chr<=122&&chr>=97))
h++;
if(chr==32)
cuv++;
}
fout<<h/cuv;
}