Cod sursa(job #1952201)
Utilizator | Data | 3 aprilie 2017 23:32:02 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin ("text.in");
ofstream fout ("text.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;
}