Pagini recente » Cod sursa (job #880535) | Cod sursa (job #3174203) | Cod sursa (job #811335) | Cod sursa (job #2710552) | Cod sursa (job #235450)
Cod sursa(job #235450)
#include<stdio.h>
#include<string.h>
#include<ctype.h>
char s[1000001];
void solve(){
long long unsigned i,n,x=0,k=0;
gets(s);
n=strlen(s);
for(i=0; i<n; )
if(isalpha(s[i])){
++k;
while(isalpha(s[i])){
++i;
++x;}}
else
while(!isalpha(s[i]))
++i;
printf("%lld",x/k);}
int main(){
freopen("text.in","r",stdin);
freopen("text.out","w",stdout);
solve();
return 0;}