Cod sursa(job #2428776)

Utilizator Vinti03Vintilescu Andrei Florin Vinti03 Data 6 iunie 2019 13:30:50
Problema Text Scor 70
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.37 kb
#include <bits/stdc++.h>

using namespace std;
ifstream fin("text.in");
ofstream fout("text.out");
long long n,k,kk,i;
string s;
int main()
{
    while(fin >> s)
    {        k++;
        for(i = 0; i <= s.size(); i++)
            if(('a' <= s[i] && s[i] <= 'z') || ('A' <= s[i] && s[i] <= 'Z'))
                kk++;
    }
    fout << kk/k;
    return 0;
}