Pagini recente » Diferente pentru problema/reguli intre reviziile 11 si 1 | Cod sursa (job #1953137) | Cod sursa (job #2972715) | Cod sursa (job #2972719) | Cod sursa (job #1131080)
#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++;
if(y==' ') {cuvinte++;y=x;}
}
else y=' ';
}
}
printf("%llu",total/cuvinte);
}