Cancel fractions by inaniwa

x;y;main(i){for(;~scanf(""-6,&x,&y);printf("%d/%d\n"+i/y*3,x/i,y/i))for(i=x;x%i+y%i;--i);}

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

download

return to the top page