Cod sursa(job #2567081)
Utilizator | Data | 3 martie 2020 14:59:18 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.18 kb |
#include <fstream>
using namespace std;ifstream f("text.in");ofstream g("text.out");int c,l,p;char x;int main(){while(f.get(x))if(isalpha(x))l++,p=1;else if(p)p=0,c++;g<<l/c;return 0;}