Pythagorean triple fixed by aglias

b,c,h,l,t;main(a){for(;b=a++<100;)for(;l=b++<a*a;)for(h=a*a,t=h+b*b;l<h?t-c*c?t>c*c?l=c+1:(h=c):!printf("%d %d %d\n",a,b,c):0;)c=(h+l)/2;}

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

download

return to the top page