Pagini recente » Cod sursa (job #2041821) | Cod sursa (job #2008815) | Cod sursa (job #1124899) | Cod sursa (job #971174) | Cod sursa (job #248654)
Cod sursa(job #248654)
#include<stdio.h>
#include<string.h>
#include<string>
char x,y;
int m,n,cuv,lit;
int muu(int &lit)
{
scanf("%c",&x);
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;
}