Reduce fractions by smkt (uncompressed)

int main(){\x0d
int a,b,c;\x0d
while(scanf("%d/%d",&a,&b)>1){\x0d
for(c=999;c>1;c--){\x0d
while(a%c==0&&b%c==0){a/=c;b/=c;}\x0d
}\x0d
printf("%d/%d\n",a,b);\x0d
}\x0d
}

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

download

return to the top page