m,n,i,j;main(d){for(;i||~scanf("%d%d",&m,&n,i=d=46);i||printf("%d\n",d))i*~j-->=n?j=~-~i*j-m-n,d=j<d?j:d,j=~m/2+i--:0;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page