nth root of v by 51b

import std.stdio;void main(){int[105]a;int[]b;int i,j,l,s,k,m,n;for(scanf("%d%d",&n,&m);i<101;writef(a[i],i++?"":"."))for(k=a[i]=10;~k;s=0)for(a[i]--,b=a.dup,k=n;k--&&s<m;)for(j=105,s=0;l=j,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