Pagini recente » Cod sursa (job #2642728) | Cod sursa (job #546537) | Cod sursa (job #686716) | Cod sursa (job #1868951) | Cod sursa (job #1131073)
#include <cstdio>
using namespace std;
int main()
{
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
unsigned long long total=0,cuvinte=0;
char x,y;
while(x!='\n')
{
scanf("%c",&x);
if(x=='\n') break;
else
{
if((x>='A'&&x<='Z')||(x>='a'&&x<='z'))
{
total++;
}
else if((y>='A'&&y<='Z')||(y>='a'&&y<='z')) cuvinte++;
}
y=x;
}
printf("%llu",total/cuvinte);
}