1st 2nd 3rd 4th

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

Convert numbers to ordinals.

-- %20

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100

Sample output:

1st
2nd
3rd
4th
5th
6th
7th
8th
9th
10th
11th
12th
13th
14th
15th
16th
17th
18th
19th
20th
21st
22nd
23rd
24th
25th
26th
27th
28th
29th
30th
31st
32nd
33rd
34th
35th
36th
37th
38th
39th
40th
41st
42nd
43rd
44th
45th
46th
47th
48th
49th
50th
51st
52nd
53rd
54th
55th
56th
57th
58th
59th
60th
61st
62nd
63rd
64th
65th
66th
67th
68th
69th
70th
71st
72nd
73rd
74th
75th
76th
77th
78th
79th
80th
81st
82nd
83rd
84th
85th
86th
87th
88th
89th
90th
91st
92nd
93rd
94th
95th
96th
97th
98th
99th
100th

Sample input:_

29294
91385
47156
77169
6043
63598
31991
27087
92862
82170
88410
72928
29845
82142
12044
52625
51714
21122
67645
45789
47734
99407
32873
23047
89450
17025
90852
15295
77304
40383
71559
40427
70436
31323
92952
52995
90573
19220
79417
50824
85956
36738
81092
68667
17800
57488
96723
63432
85604
61548
23961
88278
42327
56332
53811
17935
2480
16193
65037
18102
9733
96190
4708
4718
82857
72390
3059
60634
84436
62833
25107
27826
73594
66620
13962
72240
87392
1707
7745
88945
3938
29620
85077
29928
39615
83898
5159
62186
22237
1429
94627
5193
18027
26530
2304
24075
12646
77584
97380
26585
2471
47997
49660
915
22118
46187
70756
49453
55725
54132
51229
96558
73705
17893
34798
41267
31974
45306
81228
67630
28702
21256
84095
33991
53421
6379
98268
20384
87138
34393
60103
91162
29594
91557
36504
13609
83861
50619
48241
86651
19378
44403
79465
65394
45716
30462
5744
94530
51946
99624
64198
78064
24268
75388
13450
45010
29454
97707
20862
15226
8064
69616
97528
10154
31772
6088
26059
87614
48604
75524
85625
44824
31492
81259
36964
30305
4994
35477
45967
23324
6066
25055
77697
82884
23672
28289
7690
80215
3161
85351
69416
16257
21663
52078
75976
85006
75208
26491
31233
85081
34480
56927
36547
54727
49567
47980
30355
23134
23104
30556
90644
35825
41893
61346
26712
40473
8379
48112
73828
67404
51974
44523
39881
25855
15741
33229
89768
71515
3721
80719
64244
5634
68338
41661
33640
3017
3956
54464
72100
61241
62440
71078
88852
31471
98246
21344
73822
61361
95421
21036
55499
20599
96311
89953
49206
22032
93687
75646
9291
17037
24334
54651
24768
68156
5560
58149
95676
59404
37064
95943
48034
33299
82470
11378
35418
71185
88644
21679
1764
1146
70689
90989
55138
6457
17886
56686
8552
61608
75439
19410
59139
76212
51064
1099
99418
27350
39327
37574
27292
94816
63257
68347
58742
32356
97926
8824
57848
51107
67941
82606
12322
13181
36678
74764
73748
26694
23709
62505
95322
55655
75404
36386
76328
55211
56912
42968
22551
75056
49340
35434
61284
40585
99461
90301
84759
86155
38954
40787
8337
29842
32179
46971
11553
11033
24684
2526
18235
66526
5794
2006
74032
67205
7334
22390
98594
34487
84061
20544
48401
76340
39997
3501
93491
38644
16474
81767
25597
34731
63211
84508
10850
59230
1629
68325
31331
90700
21455
33705
26327
59124
46570
22305
16001
81227
66150
77240
32768
20049
62278
32927
84546
90346
18016
62158
60248
32739
60979
49324
62605
5260

Sample output:

29294th
91385th
47156th
77169th
6043rd
63598th
31991st
27087th
92862nd
82170th
88410th
72928th
29845th
82142nd
12044th
52625th
51714th
21122nd
67645th
45789th
47734th
99407th
32873rd
23047th
89450th
17025th
90852nd
15295th
77304th
40383rd
71559th
40427th
70436th
31323rd
92952nd
52995th
90573rd
19220th
79417th
50824th
85956th
36738th
81092nd
68667th
17800th
57488th
96723rd
63432nd
85604th
61548th
23961st
88278th
42327th
56332nd
53811th
17935th
2480th
16193rd
65037th
18102nd
9733rd
96190th
4708th
4718th
82857th
72390th
3059th
60634th
84436th
62833rd
25107th
27826th
73594th
66620th
13962nd
72240th
87392nd
1707th
7745th
88945th
3938th
29620th
85077th
29928th
39615th
83898th
5159th
62186th
22237th
1429th
94627th
5193rd
18027th
26530th
2304th
24075th
12646th
77584th
97380th
26585th
2471st
47997th
49660th
915th
22118th
46187th
70756th
49453rd
55725th
54132nd
51229th
96558th
73705th
17893rd
34798th
41267th
31974th
45306th
81228th
67630th
28702nd
21256th
84095th
33991st
53421st
6379th
98268th
20384th
87138th
34393rd
60103rd
91162nd
29594th
91557th
36504th
13609th
83861st
50619th
48241st
86651st
19378th
44403rd
79465th
65394th
45716th
30462nd
5744th
94530th
51946th
99624th
64198th
78064th
24268th
75388th
13450th
45010th
29454th
97707th
20862nd
15226th
8064th
69616th
97528th
10154th
31772nd
6088th
26059th
87614th
48604th
75524th
85625th
44824th
31492nd
81259th
36964th
30305th
4994th
35477th
45967th
23324th
6066th
25055th
77697th
82884th
23672nd
28289th
7690th
80215th
3161st
85351st
69416th
16257th
21663rd
52078th
75976th
85006th
75208th
26491st
31233rd
85081st
34480th
56927th
36547th
54727th
49567th
47980th
30355th
23134th
23104th
30556th
90644th
35825th
41893rd
61346th
26712th
40473rd
8379th
48112th
73828th
67404th
51974th
44523rd
39881st
25855th
15741st
33229th
89768th
71515th
3721st
80719th
64244th
5634th
68338th
41661st
33640th
3017th
3956th
54464th
72100th
61241st
62440th
71078th
88852nd
31471st
98246th
21344th
73822nd
61361st
95421st
21036th
55499th
20599th
96311th
89953rd
49206th
22032nd
93687th
75646th
9291st
17037th
24334th
54651st
24768th
68156th
5560th
58149th
95676th
59404th
37064th
95943rd
48034th
33299th
82470th
11378th
35418th
71185th
88644th
21679th
1764th
1146th
70689th
90989th
55138th
6457th
17886th
56686th
8552nd
61608th
75439th
19410th
59139th
76212th
51064th
1099th
99418th
27350th
39327th
37574th
27292nd
94816th
63257th
68347th
58742nd
32356th
97926th
8824th
57848th
51107th
67941st
82606th
12322nd
13181st
36678th
74764th
73748th
26694th
23709th
62505th
95322nd
55655th
75404th
36386th
76328th
55211th
56912th
42968th
22551st
75056th
49340th
35434th
61284th
40585th
99461st
90301st
84759th
86155th
38954th
40787th
8337th
29842nd
32179th
46971st
11553rd
11033rd
24684th
2526th
18235th
66526th
5794th
2006th
74032nd
67205th
7334th
22390th
98594th
34487th
84061st
20544th
48401st
76340th
39997th
3501st
93491st
38644th
16474th
81767th
25597th
34731st
63211th
84508th
10850th
59230th
1629th
68325th
31331st
90700th
21455th
33705th
26327th
59124th
46570th
22305th
16001st
81227th
66150th
77240th
32768th
20049th
62278th
32927th
84546th
90346th
18016th
62158th
60248th
32739th
60979th
49324th
62605th
5260th

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Histocrat480.03842016/02/11 06:35:210B / 20B / 26B
2mitchs510.02942016/02/11 09:22:000B / 20B / 26B
3olf510.03802016/02/15 01:25:540B / 22B / 27B
4_480.05262016/03/07 12:11:190B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1ludo510.14412016/02/24 20:16:040B / 25B / 24B
2gmk520.34812016/02/22 12:05:520B / 20B / 28B
3angel530.15352016/02/21 02:01:430B / ?B / ?B
4mitchs (ludo)470.19052016/02/24 21:50:390B / 21B / 24B
5ludo480.15812016/02/24 21:29:270B / 22B / 24B

Perl _

RankUserSizeTimeDateStatistics
1mitchs410.03172016/02/11 07:38:450B / 15B / 24B
2teebee410.03612016/02/11 07:54:340B / 15B / 24B
3tails410.02262016/02/12 16:39:180B / 15B / 24B
4nai410.02782016/02/19 10:50:070B / 15B / 24B
5corruptio450.02652016/02/18 11:41:340B / 19B / 24B
6angel460.02642016/02/20 15:58:280B / ?B / ?B
7%20470.02572016/02/22 05:55:420B / 19B / 26B
8kimiyuki510.02632016/02/21 10:52:120B / 19B / 30B
9BioFALSE620.02862016/02/11 10:24:290B / 27B / 32B

Python _

RankUserSizeTimeDateStatistics
1xsot630.11222016/02/23 14:30:080B / 39B / 23B
2mitchs630.08742016/02/24 16:54:440B / 39B / 23B
3xnor640.06272016/02/15 18:27:190B / ?B / ?B
4llhuii640.07382016/02/24 01:58:170B / 38B / 25B
5mitchs (alt)640.07392016/02/24 16:57:320B / 39B / 24B
6whatisgolf650.07242016/02/17 03:52:010B / ?B / ?B
7Sp3000660.07262016/02/23 13:31:130B / ?B / ?B
8rolf680.08952016/02/11 04:04:490B / 40B / 27B
9Mego690.08412016/02/23 14:08:360B / ?B / ?B
10recursive700.06622016/02/12 10:33:070B / 44B / 25B
11_780.10182016/02/16 11:44:350B / ?B / ?B
12mitchs (alt2)640.15802016/02/24 21:30:270B / 41B / 22B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs720.15102016/02/16 13:02:060B / 44B / 27B
2xsot720.16052016/02/23 14:32:430B / 44B / 27B
3xsot (alt)720.15762016/02/24 18:36:570B / 44B / 27B
4reirei_As790.14732016/02/24 16:20:470B / ?B / ?B
5adkusm1200.15732016/02/22 19:47:330B / ?B / ?B
6Kjwon151790.14512016/02/26 15:43:010B / ?B / ?B

Common LISP _

RankUserSizeTimeDateStatistics
1hebiyan1440.12842016/02/17 14:35:320B / 87B / 32B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee680.04952016/02/13 17:36:020B / 32B / 36B
2Jakzo700.12372016/02/17 11:21:400B / 35B / 35B
3_nderscore740.04002016/02/24 06:27:060B / 35B / 39B

C _

RankUserSizeTimeDateStatistics
1xsot860.02482016/02/23 16:48:053B / 47B / 36B
2%20900.02252016/02/13 12:21:280B / 48B / 42B
3chocobi1120.02412016/02/11 01:49:380B / 57B / 55B
4mitchs (xsot)850.02482016/02/24 21:28:213B / 46B / 36B

ObjC _

RankUserSizeTimeDateStatistics
1%20900.02222016/02/13 12:21:420B / 48B / 42B

Java _

RankUserSizeTimeDateStatistics
1teebee1590.55772016/02/19 06:51:190B / 89B / 62B
2dc1820.32402016/02/18 19:39:430B / 111B / 65B

C# _

RankUserSizeTimeDateStatistics
1piyo3190.09062016/02/24 20:32:070B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1teebee500.03062016/02/24 17:04:250B / 16B / 34B

sed _

RankUserSizeTimeDateStatistics
1mitchs470.02642016/02/10 20:53:300B / 27B / 16B
2tails470.02672016/02/12 03:08:130B / 20B / 26B
3kimiyuki470.02672016/02/22 06:03:150B / 27B / 16B
4%20490.02332016/02/10 20:34:160B / 22B / 24B
5yasuhiroki550.02402016/02/14 21:34:500B / 21B / 33B

Bash _

RankUserSizeTimeDateStatistics
1mitchs410.02872016/02/15 00:12:300B / 16B / 24B
2yasuhiroki600.01012016/02/14 21:33:480B / 24B / 35B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails590.19372016/02/22 11:02:560B / 31B / 19B

make _

RankUserSizeTimeDateStatistics
1tails1480.03072016/02/23 12:54:520B / 81B / 50B
2tails1250.04962017/03/15 17:57:110B / 69B / 48B

dc _

RankUserSizeTimeDateStatistics
1tails560.06582016/02/12 18:50:260B / 41B / 15B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)1480.10952016/02/11 14:15:455B / 8B / 134B
2mitchs1680.02922016/02/12 23:56:160B / 0B / 168B
3kimiyuki2770.04962016/02/11 00:20:040B / 0B / 277B
4%203320.03002016/02/11 11:20:030B / 0B / 332B

Befunge _

RankUserSizeTimeDateStatistics
1%20530.04072016/02/22 04:09:400B / 22B / 31B

GolfScript _

RankUserSizeTimeDateStatistics
1tails390.17592016/02/13 17:51:250B / 19B / 20B
2mitchs390.14872016/02/13 20:44:180B / 17B / 22B
3mitchs (tails,xnor/llhuii)370.16222016/02/24 21:07:010B / 17B / 20B
4mitchs (tails)370.19052016/02/24 21:12:300B / 17B / 20B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs270.28762016/02/15 23:13:327B / 16B / 4B

FerNANDo _

RankUserSizeTimeDateStatistics
1%202850.17422016/02/20 20:50:280B / 143B / 0B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs2710000
2GolfScriptmitchs (tails)377297
3Perlmitchs416585
4Bashmitchs416585
5sedmitchs475744
6Ruby2mitchs (ludo)475744
7RubyHistocrat485625
8AWKteebee505400
9Befunge%20535094
10dctails564821
11Bash (builtins)tails594576
12Pythonxsot634285
13JavaScriptteebee683970
14Python3mitchs723750
15Cmitchs (xsot)853176
16ObjC%20903000
17maketails1252160
18Common LISPhebiyan1441875
19Brainfuckmitchs (cheat)1481824
20Javateebee1591698
21FerNANDo%20285947
22C#piyo319846

return top