Reduce fractions FIXED by ush

main(a,b,c){for(;~scanf("%d/%d\n",&a,&b);a/=c,b/=c,vprintf())for(c=b;b%--c|a%c;);}

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

download

return to the top page