alternating harmonic series

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

Print the first 20 alternating harmonic numbers
1, 1-1/2, 1-1/2+1/3, ... , 1-1/2+1/3-...-1/20

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

*NOTHING*

Sample output:

1/1
1/2
5/6
7/12
47/60
37/60
319/420
533/840
1879/2520
1627/2520
20417/27720
18107/27720
263111/360360
237371/360360
52279/72072
95549/144144
1768477/2450448
1632341/2450448
33464927/46558512
155685007/232792560

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1flagitious540.04892008/03/10 01:56:340B / 28B / 22B
2leonid540.10912008/03/10 02:10:460B / 28B / 23B
3murky-satyr550.11462008/03/09 09:17:270B / 29B / 23B
4eban570.09792010/07/28 16:54:590B / 29B / 27B
5Histocrat600.01862013/12/28 03:24:390B / 32B / 23B
6tabasa820.05622008/03/09 09:34:060B / ?B / ?B
7xdigit820.12402008/03/11 19:23:120B / 48B / 30B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs360.06232015/11/28 13:29:260B / 19B / 15B

Perl _

RankUserSizeTimeDateStatistics
1tails490.10592017/02/08 10:35:080B / 27B / 21B
2teebee500.18182011/03/15 10:38:550B / 26B / 23B
3llhuii510.08102015/07/04 15:44:220B / ?B / ?B
4tybalt89610.24762010/08/16 09:12:470B / ?B / ?B
5corruptio1010.00082011/02/01 10:40:350B / 35B / 65B
6dcutter2180.01402010/07/06 01:12:420B / 177B / 22B
7TAKO/j0nKI2400.00012010/03/16 01:22:341B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1llhuii840.04582015/07/04 15:17:210B / ?B / ?B
2teebee850.04262015/07/04 17:08:250B / 55B / 26B
3Stephan W.910.04722015/07/03 18:17:350B / ?B / ?B
4leonid920.02942012/02/08 15:56:460B / 48B / 42B
5hallvabo940.02942010/09/10 08:31:370B / 48B / 44B
6twobit950.03222011/02/02 10:17:190B / 49B / 43B
7hirose960.07072008/03/10 15:24:510B / 51B / 43B
8recursive960.03262011/02/02 02:02:540B / 49B / 45B
9kt3k1000.05872008/03/10 04:05:300B / 50B / 48B
10corruptio1000.02842011/02/01 10:25:490B / 51B / 35B

Python3 _

RankUserSizeTimeDateStatistics
1llhuii860.06292015/07/04 15:19:560B / ?B / ?B
2teebee890.06782015/07/04 08:37:310B / 53B / 33B
3Stephan W.940.07122015/07/03 17:25:170B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1murky-satyr1030.12592008/05/11 22:00:220B / 37B / 65B
2daira1220.16542008/05/02 11:18:110B / 44B / 77B
3TAKO/j0nKI2300.01612010/03/16 01:23:5819B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1youz660.03692011/04/16 12:39:450B / 33B / 30B
2kaki660.03552011/04/16 12:54:110B / 32B / 28B
3murky-satyr750.03502011/04/10 00:37:350B / 34B / 34B
4xdigit1230.28332008/03/13 13:50:370B / 53B / 50B

Common LISP _

RankUserSizeTimeDateStatistics
1youz700.07422011/04/16 18:49:400B / 32B / 32B
2kozima770.05232008/03/10 18:24:020B / 36B / 33B
3xdigit980.02282008/03/11 10:39:550B / 50B / 39B

Arc _

RankUserSizeTimeDateStatistics
1youz422.42382011/04/18 12:57:420B / 17B / 20B
2murky-satyr452.50322011/04/17 02:33:490B / 20B / 20B
3pooq543.66002009/10/12 00:08:450B / 28B / 19B

Clojure _

RankUserSizeTimeDateStatistics
1youz661.84962011/04/16 18:49:310B / 28B / 35B
2murky-satyr661.79072011/04/17 02:46:320B / 32B / 30B

Io _

RankUserSizeTimeDateStatistics
151b930.88372008/05/16 18:45:510B / 48B / 40B
2murky-satyr931.01542008/05/16 19:35:190B / 46B / 44B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr840.05032008/03/09 23:51:540B / 39B / 45B

Lua _

RankUserSizeTimeDateStatistics
1clock1100.00012012/08/13 17:04:150B / 61B / 33B
2murky-satyr1120.01972008/04/01 02:52:580B / 62B / 36B

Tcl _

RankUserSizeTimeDateStatistics
1clock1470.01602012/08/27 08:52:080B / 78B / 34B
2murky-satyr1910.05092008/07/10 12:28:170B / 97B / 59B

Icon _

RankUserSizeTimeDateStatistics
1clock1310.01302012/05/05 20:50:400B / 72B / 53B

PARI/GP _

RankUserSizeTimeDateStatistics
1Hendrik440.01252015/05/22 11:07:160B / 23B / 21B
2teebee440.02132015/05/23 00:03:280B / 23B / 21B
3clock450.05922012/05/08 11:33:100B / 24B / 21B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr520.20212008/04/08 06:35:140B / 29B / 21B

Forth _

RankUserSizeTimeDateStatistics
151b1450.08922008/03/12 19:06:160B / 79B / 21B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*920.00022010/08/26 18:36:3318B / 38B / 33B
2yt1050.03132008/03/10 10:38:470B / 61B / 33B

Perl6 _

RankUserSizeTimeDateStatistics
1murky-satyr372.61812010/08/08 13:49:070B / 16B / 20B
2dcutter2171.31272010/07/06 01:14:070B / 175B / 22B

Erlang _

RankUserSizeTimeDateStatistics
151b1770.39292008/03/10 14:01:360B / 80B / 86B

J _

RankUserSizeTimeDateStatistics
1I., S.320.02522015/11/29 18:05:230B / 10B / 22B
2pooq390.02062009/10/31 00:26:520B / 9B / 30B
3medialuna860.02372014/08/27 18:13:050B / ?B / ?B

C _

RankUserSizeTimeDateStatistics
1not960.00012010/01/26 11:11:020B / 46B / 50B
2llhuii960.00012015/07/04 16:08:560B / ?B / ?B
3hinoe970.03392008/03/09 21:08:160B / 45B / 52B
47gyou970.03142008/07/05 01:35:230B / 48B / 49B
5murky-satyr990.03372008/03/09 23:56:420B / 47B / 52B
651b990.01602008/03/10 04:43:110B / 46B / 53B
7inaniwa990.00012010/01/26 21:06:240B / 45B / 54B
8hallvabo1110.00022010/10/09 02:33:090B / 59B / 51B
9corruptio1220.00022011/02/01 11:01:560B / 66B / 54B
10funnything1690.00032008/07/04 06:03:5012B / 65B / 62B

D _

RankUserSizeTimeDateStatistics
151b1140.01362008/03/09 20:29:440B / 59B / 52B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1210.29802008/04/15 02:12:480B / 75B / 37B
2m.ukai1210.35952008/04/15 12:24:240B / 75B / 37B

Haskell _

RankUserSizeTimeDateStatistics
1rst76750.00012010/09/16 10:55:040B / 48B / 24B
2notogawa750.00022010/09/16 20:12:390B / 45B / 27B
3xdigit1010.00532008/03/13 14:20:380B / 59B / 31B

Java _

RankUserSizeTimeDateStatistics
1hallvabo1270.12412010/10/09 02:27:350B / 72B / 53B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1380.00012010/08/26 23:17:5317B / 69B / 43B
2uru1760.01742009/04/28 01:37:570B / 112B / 46B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1080.01312011/11/11 10:56:420B / 64B / 42B

Nemerle _

RankUserSizeTimeDateStatistics
1murky-satyr1420.28972008/11/02 00:33:020B / 85B / 53B

Maxima _

RankUserSizeTimeDateStatistics
1clock630.10992012/10/31 18:50:060B / 32B / 30B
2pooq660.11672010/01/24 17:32:140B / 31B / 34B

REBOL _

RankUserSizeTimeDateStatistics
1clock1440.03532012/08/27 16:45:440B / 70B / 30B

AWK _

RankUserSizeTimeDateStatistics
1llhuii810.01072014/03/18 20:56:010B / 38B / 42B
2nn980.00042010/03/04 00:58:590B / 48B / 47B

sed _

RankUserSizeTimeDateStatistics
1clock2240.01332011/12/05 00:43:250B / 180B / 31B
2eban2310.00632008/03/08 18:18:090B / 173B / 39B

Bash _

RankUserSizeTimeDateStatistics
1llhuii760.01432015/07/04 21:08:530B / ?B / ?B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii760.01222015/07/04 21:09:370B / ?B / ?B

Fish _

RankUserSizeTimeDateStatistics
1llhuii770.01852015/07/04 21:09:270B / ?B / ?B

wake _

RankUserSizeTimeDateStatistics
1clock2220.01722011/12/05 10:02:280B / 173B / 29B
2eban2330.00372010/07/28 17:09:370B / 191B / 42B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii780.01072014/03/15 03:01:040B / 37B / 41B

m4 _

RankUserSizeTimeDateStatistics
1TAKO/j0nKI2300.00012010/04/08 23:39:1219B / 172B / 20B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)910.17162008/03/09 21:02:1045B / 34B / 12B
2yshl1780.19032008/03/09 21:01:350B / 130B / 13B

R _

RankUserSizeTimeDateStatistics
1murky-satyr1021.64482008/03/30 23:12:050B / 47B / 46B
251b1051.49982008/03/31 02:06:360B / 50B / 52B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)1910.03542016/07/13 14:14:3928B / 45B / 112B
2g33k2450.00012013/01/30 11:05:3120B / ?B / ?B
3REM11890.09452008/03/19 18:08:210B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1leonid190.03642010/01/29 15:19:450B / 5B / 14B
2irori200.04762011/04/15 23:55:000B / 5B / 15B
3flagitious410.20192008/03/10 01:59:480B / 19B / 22B

gs2 _

RankUserSizeTimeDateStatistics
1whio300.09692017/02/08 06:03:3512B / 8B / 8B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik590.01692016/12/01 06:42:450B / 32B / 26B

D-compile-time _

RankUserSizeTimeDateStatistics
151b2750.54962008/03/30 22:15:560B / 167B / 92B

DOS _

RankUserSizeTimeDateStatistics
1chocobi2412.40992008/11/18 01:10:4726B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1clock1150.09532012/05/05 21:17:236B / 62B / 30B
2nn1950.03722010/10/10 14:00:120B / 116B / 63B

goruby _

RankUserSizeTimeDateStatistics
1mitchs260.02792016/01/19 02:26:370B / 11B / 14B
2murky-satyr280.02982010/01/04 16:09:210B / 12B / 15B
3leonid280.04462012/02/08 15:27:560B / 12B / 14B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr851.17672009/12/26 23:39:350B / 44B / 36B
2nn871.17502009/12/27 17:02:390B / 48B / 33B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr967.47892011/04/10 00:51:100B / 52B / 33B

Language Ranking_

RankLangUserSizeScore
1GolfScriptleonid1910000
2gorubymitchs267307
3gs2whio306333
4JI., S.325937
5Ruby2mitchs365277
6Perl6murky-satyr375135
7Arcyouz424523
8PARI/GPHendrik444318
9Perltails493877
10Smalltalkmurky-satyr523653
11Rubyflagitious543518
12BurlesqueHendrik593220
13Maximaclock633015
14Schemeyouz662878
15Clojureyouz662878
16Common LISPyouz702714
17Haskellrst76752533
18Bashllhuii762500
19Zshllhuii762500
20Fishllhuii772467
21xgawkllhuii782435
22AWKllhuii812345
23JavaScriptmurky-satyr842261
24Pythonllhuii842261
25Groovymurky-satyr852235
26Python3llhuii862209
27Postscriptyshl(bin)912087
28BASIC*yuko*922065
29Io51b932043
30Cnot961979
31Scalamurky-satyr961979
32Rmurky-satyr1021862
33PHPmurky-satyr1031844
34Fortran*yuko*1081759
35Luaclock1101727
36D51b1141666
37Vimclock1151652
38OCamlksk1211570
39Javahallvabo1271496
40Iconclock1311450
41Pascal*yuko*1381376
42Nemerlemurky-satyr1421338
43REBOLclock1441319
44Forth51b1451310
45Tclclock1471292
46Erlang51b1771073
47Brainfuckmitchs (cheat)191994
48wakeclock222855
49sedclock224848
50m4TAKO/j0nKI230826
51DOSchocobi241788
52D-compile-time51b275690

return top