Cod sursa(job #1952200)

Utilizator Andrei2000Andrei Mihailescu Andrei2000 Data 3 aprilie 2017 23:31:15
Problema Text Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("lapte.in");
ofstream fout ("lapte.out");
int l,c,ok;
int main()
{
    char x;
    while(fin.get(x))
        if(isalpha(x))l++,ok=1;
        else if(ok)c++,ok=0;
    fout<<l/c;
    return 0;
}