Cod sursa(job #967098)
Utilizator | Data | 27 iunie 2013 03:02:21 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.32 kb |
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
ifstream i ("text.in");
ofstream o ("text.out");
int main()
{int cuv=0,i,lit=0,k=0;
char x;
while(x<<i)
{if ((x>'a' && x<='z') || (x>='A'&& x<='Z'))
{lit++;
k=1;}
else if(k){
k=0;
cuv++;}
}
o<<lit/cuv;
return 0;
}