Factorization corrected by Maedhros777

x,y,z=100;main(a,b){while(scanf("%d%d",&a,&b)>0)for(x=0;x<z;x++)for(y=x;y<z;y++)if(x+y==a&&x*y==b)printf("%d %d\n",x,y);}

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

download

return to the top page