Cod sursa(job #2628368)
| Utilizator | Data | 15 iunie 2020 17:40:46 | |
|---|---|---|---|
| Problema | Text | Scor | 10 |
| Compilator | cpp-64 | Status | done |
| Runda | Arhiva de probleme | Marime | 0.44 kb |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fisier 1
const int mxN = 2e5;
int32_t main(){
#ifdef fisier
ifstream cin("text.in");
ofstream cout("text.out");
#endif
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
char d;
int n, l, ok = 0;
while (cin.get(d)){
if (isalpha(d)){
l++;
if (!ok)
n++, ok = 1;
}
else ok = 0;
}
cout << l / n;
//cout << s.size();
}
