Relative Frequency by orangetide

main(c,n,t,s){for(;~scanf("%c ",&c);printf("%.6f\n",1.*n/t))for(t=n=0;(s=getchar())>10;n+=s==c)t++;}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page