char*p,s[];main(n){for(;gets(p=s);printf("%f\n",n/(p-s-3.)))for(n=0;*p++;)n+=*s==*p;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page