Cod sursa(job #2590158)
| Utilizator | Data | 27 martie 2020 16:25:30 | |
|---|---|---|---|
| Problema | Text | Scor | 100 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.2 kb |
#import <fstream>
using namespace std;ifstream fin("text.in");ofstream fout("text.out");int k,m;bool l;char x;int main(){while(fin.get(x)){if(isalpha(x))k++,l=1;else if(l)l=0,m++;}fout<<k/m;return 0;}
