Cod sursa(job #1205244)
Utilizator | Data | 5 iulie 2014 19:15:37 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.64 kb |
#include <fstream>
using namespace std;
ifstream in("text.in");
ofstream out("text.out");
int nrcuv,lun,i;
char g;
int main()
{
g=in.get();
while(in)
{
if(g>='a'&&g<='z')
{
lun++;
i++;
}
if(g>='A'&&g<='Z')
{
lun++;
i++;
}
else
if(ji>0)
{
nrcuv++;
i=0;
}
g=in.get();
}
out<<lun/nrcuv;
return 0;
}