Cod sursa(job #248661)
Utilizator | Data | 26 ianuarie 2009 14:40:07 | |
---|---|---|---|
Problema | Text | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.49 kb |
#include<stdio.h>
#include<string.h>
#include<string>
char x,y;
int m,n,cuv,lit;
int muu(int &lit)
{
scanf("%c",&x);
if(x>='A'&&x<='Z')||(x>='a'&&x<='z')
{
lit++;
}
while(scanf("%c",&y)!=EOF)
{
if( (y>='A'&&y<='Z')||(y>='a'&&y<='z') )
{
lit++;
if( (x<'A')||(x>'Z'&&x<'a')||(x>'z'))
cuv++;
}
x=y;
}
return cuv;
}
int main()
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
int n = muu(m);
printf("%d",m/n);
return 0;
}