double a;main(b){for(;~scanf("%lf%d",&a,&b);printf("%.f\n",log(a)/log(b)));}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page