nth root of v by 51b

a[120],b[120];i,j,l,s,k;main(n,m){for(scanf("%d%d",&n,&m);!k?a[i]=10:i<101;k||printf(i++?"%d":"%d.",a[i]))for(s=!a[i]--,bcopy(a,b,480),k=n+1;--k&&s<m;)for(j=120,s=0;l=j--;b[j]=j?s%10:s)for(s/=10;l--;)s+=a[l]*b[j-l];}

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

download

return to the top page