Cod sursa(job #2044545)
Utilizator | Data | 21 octombrie 2017 11:00:43 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.36 kb |
//#include <iostream>
#include <fstream>
#include <string.h>
#include <cctype>
using namespace std;
int main()
{
char a[100];
int s=2;
ifstream cin("text.in");
ofstream cout ("text.out");
cin.get(a, 101);
for (int i=0; i < strlen(a); i++) {
if (!isalpha(a[i])) s++;
}
cout << strlen(a)/s;
return 0;
}