Cod sursa(job #2569775)
Utilizator | Data | 4 martie 2020 13:39:08 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <fstream>
#include <cstring>
using namespace std;
ifstream f("in.in");
ofstream g("out.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;}