Reduce fractions

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Reduce the given fractions as much as possible and print the result.

Options

now post-mortem time, all source codes will be revealed

Sample input:_

2/4
2/5
8/50
500/900
800/1200
512/4096
9/16
450/800
780/940
15/32
452/700
4/12
112/125
444/666
32/48
32/64
817/7800
31/9452
52/104
32/128
778/800
5687/900
50/150
8/10
511/666
768/1024
9/16
27/48
468/888
1250/6524
234/432
80/180

Sample output:

1/2
2/5
4/25
5/9
2/3
1/8
9/16
9/16
39/47
15/32
113/175
1/3
112/125
2/3
2/3
1/2
817/7800
31/9452
1/2
1/4
389/400
5687/900
1/3
4/5
511/666
3/4
9/16
9/16
39/74
625/3262
13/24
4/9

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1teebee130.01422012/11/16 07:21:200B / 3B / 10B
2clock(exec)130.01652012/11/16 10:49:010B / 7B / 6B
3kaki140.02722012/11/14 22:41:110B / 8B / 4B

Perl _

RankUserSizeTimeDateStatistics
1teebee130.02282012/11/16 07:22:480B / 7B / 6B
2clock(exec)130.01842012/11/16 10:49:500B / 7B / 6B
3tails290.15352012/11/11 12:30:110B / 21B / 6B
4tanon290.13562012/11/11 23:10:160B / 19B / 7B
5teebee(nocheat)290.08842012/11/16 07:24:010B / 21B / 6B
6BioFALSE1400.01642012/11/24 20:14:140B / 52B / 87B

Scheme _

RankUserSizeTimeDateStatistics
1teebee210.16462012/11/11 12:13:200B / 16B / 3B
2kaki210.03322012/11/14 22:14:100B / 16B / 3B
3clock210.02762012/11/18 10:31:470B / 16B / 3B

Common LISP _

RankUserSizeTimeDateStatistics
1teebee160.06872012/11/16 07:21:590B / 8B / 8B
2clock(exec)160.04022012/11/16 10:50:380B / 8B / 8B
3kaki170.02142012/11/14 22:42:270B / 9B / 6B

Arc _

RankUserSizeTimeDateStatistics
1teebee181.01772012/11/11 12:14:450B / 12B / 6B
2kaki181.03072012/11/14 22:32:230B / 12B / 6B
3clock180.91692012/11/18 10:32:090B / 12B / 6B

Clojure _

RankUserSizeTimeDateStatistics
1teebee200.82972012/11/11 12:15:470B / 13B / 6B
2kaki200.81232012/11/14 22:22:100B / 13B / 6B
3clock200.94772012/11/18 10:32:250B / 13B / 6B

LilyPond _

RankUserSizeTimeDateStatistics
1teebee320.67502012/11/11 12:25:380B / 17B / 14B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock10.08122012/11/11 12:23:010B / 0B / 0B
2teebee10.02132012/11/11 12:26:530B / 0B / 1B
3macik10.01442012/11/12 17:48:180B / ?B / ?B
4kaki10.09192012/11/14 22:15:170B / 0B / 0B

J _

RankUserSizeTimeDateStatistics
1teebee130.10272012/11/16 09:37:250B / 5B / 8B
2clock(exec)130.02212012/11/16 10:51:380B / 5B / 8B
3I., S.430.02152012/11/11 22:46:360B / 13B / 28B

C _

RankUserSizeTimeDateStatistics
1teebee260.01822012/11/16 07:18:520B / 12B / 14B
2clock(exec)260.01102012/11/16 10:52:290B / 13B / 13B
3kaki270.01662012/11/14 22:47:540B / 14B / 11B
4smkt1080.01062012/11/11 11:57:070B / 50B / 58B
5smkt (uncompressed)1440.01072012/11/11 11:49:518B / 64B / 62B
6jamesaxl2630.01352012/11/13 03:41:5016B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1smkt2300.01272012/11/15 04:48:310B / 139B / 84B

Maxima _

RankUserSizeTimeDateStatistics
1teebee180.41852012/11/16 09:36:260B / 9B / 9B
2clock(exec)180.08032012/11/16 10:53:180B / 9B / 9B

Bash _

RankUserSizeTimeDateStatistics
1teebee70.01042012/11/16 07:17:380B / 2B / 5B
2clock(cheat)70.01622012/11/16 10:54:000B / 3B / 4B
3kaki80.01042012/11/14 22:38:530B / 4B / 2B

Zsh _

RankUserSizeTimeDateStatistics
1teebee70.07612012/11/18 10:16:200B / 3B / 4B
2clock70.01232012/11/18 10:32:570B / 3B / 4B

Fish _

RankUserSizeTimeDateStatistics
1teebee70.06942012/11/18 10:16:260B / 3B / 4B
2clock70.03122012/11/18 10:33:070B / 3B / 4B

R _

RankUserSizeTimeDateStatistics
1_170.25632014/08/28 05:12:550B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1udioica(!)120.04672017/06/20 00:36:240B / 6B / 5B

Language Ranking_

RankLangUserSizeScore
1PARI/GPclock110000
2Bashteebee71428
3Zshteebee71428
4Fishteebee71428
5Vimudioica(!)12833
6Rubyteebee13769
7Perlteebee13769
8Jteebee13769
9Common LISPteebee16625
10R17588
11Arcteebee18555
12Maximateebee18555
13Clojureteebee20500
14Schemeteebee21476
15Cteebee26384
16LilyPondteebee32312
17C++smkt23043

return top