Cod sursa(job #3032331)
Utilizator | Data | 21 martie 2023 22:22:43 | |
---|---|---|---|
Problema | Text | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.46 kb |
#include <bits/stdc++.h>
using namespace std;
const string file_name = "text";
ifstream fin(file_name + ".in");
ofstream fout(file_name + ".out");
char x;
long long cuv, nmax;
bool gasit = false;
int main()
{
while(fin.get(x)){
if(isalpha(x)){
cuv++;
while(isalpha(x)){
fin.get(x);
nmax++;
}
}
}
nmax /= cuv;
fout << nmax;
return 0;
}