Reduce fractions FIXED

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

exec is denied

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
1kaki240.03272012/11/14 22:18:060B / 16B / 5B
2uru240.02302012/11/17 20:07:420B / 16B / 5B
3teebee240.03732012/11/18 10:14:050B / 16B / 5B
4clock240.02692012/11/18 10:30:130B / 16B / 5B

Ruby2 _

RankUserSizeTimeDateStatistics
1tails210.12112017/06/21 14:43:080B / 9B / 10B

Perl _

RankUserSizeTimeDateStatistics
1tanon290.09652012/11/11 18:09:580B / ?B / ?B
2MG290.13652012/11/12 15:15:580B / 21B / 6B
3shlomif290.10162012/11/15 01:29:390B / 19B / 7B
4teebee290.12672012/11/18 10:14:150B / 21B / 6B
5clock290.08952012/11/18 10:30:490B / 21B / 6B
6jamesaxl1840.01122012/11/13 04:17:4611B / ?B / ?B
7jonathan camacho800.01142014/02/26 21:46:510B / 28B / 48B
8BioFALSE1000.02262012/12/03 21:04:080B / 30B / 70B

Python _

RankUserSizeTimeDateStatistics
1clock870.05542012/11/12 04:45:520B / 47B / 32B
2hallvabo900.01922012/11/12 01:15:540B / 49B / 33B
3twobit900.01612012/11/12 03:28:420B / 49B / 33B
4recursive900.01692012/11/17 06:48:210B / 49B / 33B
5teebee(Stephan W.)580.06662015/07/04 07:34:420B / 46B / 7B
6Stephan W.610.10382015/07/02 23:48:550B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1teebee(Stephan W.)550.07792015/07/04 07:36:410B / 43B / 8B
2Stephan W.580.12722015/07/02 23:48:060B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1clock210.03802012/11/11 17:25:440B / 16B / 3B
2kaki210.03632012/11/14 22:14:170B / 16B / 3B
3teebee210.05542012/11/18 10:14:000B / 16B / 3B

Common LISP _

RankUserSizeTimeDateStatistics
1clock270.02832012/11/11 17:21:000B / 16B / 9B
2kaki270.03432012/11/14 22:21:060B / 19B / 8B
3teebee270.06632012/11/18 10:14:100B / 16B / 9B

Arc _

RankUserSizeTimeDateStatistics
1clock180.89972012/11/11 17:31:110B / 12B / 6B
2kaki180.87392012/11/14 22:32:430B / 12B / 6B
3teebee180.89232012/11/18 10:13:450B / 12B / 6B

Clojure _

RankUserSizeTimeDateStatistics
1clock201.17802012/11/11 17:18:230B / 13B / 6B
2kaki200.81232012/11/14 22:22:180B / 13B / 6B
3teebee201.40522012/11/18 10:13:550B / 13B / 6B

LilyPond _

RankUserSizeTimeDateStatistics
1teebee321.11612012/11/18 10:14:280B / 17B / 14B

JavaScript _

RankUserSizeTimeDateStatistics
1clock680.04492012/11/18 12:11:010B / 36B / 32B
2teebee750.07382012/11/18 12:01:320B / 37B / 38B

PARI/GP _

RankUserSizeTimeDateStatistics
1clock10.03882012/11/11 12:26:320B / 0B / 0B
2twobit10.06512012/11/12 03:40:460B / 0B / 0B
3teebee10.01592012/11/12 04:11:570B / 1B / 0B
4macik10.01912012/11/12 17:48:310B / ?B / ?B
5tttaki10.04782012/11/13 18:27:380B / 1B / 0B
6kaki10.02762012/11/14 22:15:260B / 0B / 0B
7yibe10.06622012/11/18 04:38:340B / 0B / 0B

Smalltalk _

RankUserSizeTimeDateStatistics
1teebee420.18812012/11/18 11:57:370B / 32B / 8B

J _

RankUserSizeTimeDateStatistics
1I., S.430.04142012/11/11 22:40:200B / 12B / 31B

C _

RankUserSizeTimeDateStatistics
1nu730.01412012/11/12 13:34:520B / 36B / 37B
2ush820.01402012/11/12 09:25:200B / 40B / 42B
3teebee830.01082012/11/12 04:29:120B / 41B / 42B
4smkt (What was wrong with last one?)1080.01462012/11/12 03:55:200B / 50B / 58B

Haskell _

RankUserSizeTimeDateStatistics
1henkma890.02562012/11/15 04:47:470B / 55B / 28B
2notogawa890.02102012/11/15 20:32:580B / 55B / 28B
3tttaki1180.01812012/11/15 22:39:260B / 66B / 42B

Pascal _

RankUserSizeTimeDateStatistics
1teebee1240.01282012/11/18 11:15:230B / 84B / 26B
2uru1350.01272012/11/17 19:57:290B / 93B / 25B
3teebee(nu)1140.01282012/11/18 13:21:380B / 78B / 26B

Maxima _

RankUserSizeTimeDateStatistics
1clock300.09632012/11/11 17:08:510B / 21B / 6B
2teebee300.44872012/11/18 10:14:220B / 21B / 6B

AWK _

RankUserSizeTimeDateStatistics
1teebee500.01082012/11/18 11:47:570B / 19B / 31B
2teebee(nu)450.02312012/11/18 12:44:260B / 16B / 29B

Bash _

RankUserSizeTimeDateStatistics
1clock70.02722012/11/15 14:37:200B / 3B / 4B
2teebee70.05502012/11/16 06:14:160B / 2B / 5B
3kaki80.01732012/11/14 22:48:360B / 4B / 2B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails620.18592017/06/20 12:59:210B / 24B / 31B

gs2 _

RankUserSizeTimeDateStatistics
1tails120.08612017/06/21 15:02:335B / 5B / 2B

Vim _

RankUserSizeTimeDateStatistics
1udioica(!)120.01952017/06/20 00:36:400B / 6B / 5B

Groovy _

RankUserSizeTimeDateStatistics
1clock821.07912012/11/18 12:03:080B / 46B / 32B
2teebee831.32622012/11/18 11:30:230B / 46B / 36B

Language Ranking_

RankLangUserSizeScore
1PARI/GPclock110000
2Bashclock71428
3Vimudioica(!)12833
4gs2tails12833
5Arcclock18555
6Clojureclock20500
7Schemeclock21476
8Ruby2tails21476
9Rubykaki24416
10Common LISPclock27370
11Perltanon29344
12Maximaclock30333
13LilyPondteebee32312
14Smalltalkteebee42238
15JI., S.43232
16AWKteebee(nu)45222
17Python3teebee(Stephan W.)55181
18Pythonteebee(Stephan W.)58172
19Bash (builtins)tails62161
20JavaScriptclock68147
21Cnu73136
22Groovyclock82121
23Haskellhenkma89112
24Pascalteebee(nu)11487

return top