Cod sursa(job #2561249)
Utilizator | Data | 28 februarie 2020 18:02:30 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.16 kb |
#import<fstream>
int w,l,y;main(){std::ifstream f("text.in");char c;while(f.get(c)){if(isalpha(c)){if(!y)y=1,++w;++l;}else y=0;}std::ofstream("text.out")<<l/w;}