Cod sursa(job #2140814)
| Utilizator | Data | 23 februarie 2018 21:44:25 | |
|---|---|---|---|
| Problema | Text | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream input("text.in");
ofstream print("text.out");
char c;
bool ok=false;
int nr,nrnr;
int main(){
while(!input.eof()){
if(isalpha(c)){
if(!ok)nr++,ok=true;
nrnr++;
}
else ok=false;
}
print<<nrnr/nr;
}
