reversed even or odd first

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 even or odd numbers in reverse order, and then the remaining numbers in the same way.

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

10

Sample output:

10
8
6
4
2
9
7
5
3
1

Sample input:_

53

Sample output:

53
51
49
47
45
43
41
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
52
50
48
46
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2

Sample input:_

100

Sample output:

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

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1Sisyphus380.05442021/03/12 18:41:050B / 22B / 15B
2JoKing380.04392021/03/12 20:51:460B / 22B / 15B
3Dingledooper380.04452021/03/13 03:41:230B / 22B / 15B
4rotary-o380.04992021/03/15 23:57:180B / 17B / 19B
5olf380.04312021/03/18 04:52:250B / 17B / 19B
6ludo380.04452021/03/18 21:11:590B / 18B / 18B
7Histocrat420.04902021/03/17 11:23:140B / 21B / 20B

Ruby2 _

RankUserSizeTimeDateStatistics
1Dingledooper370.20852021/03/16 13:44:590B / 21B / 16B
2rotary-o380.24842021/03/15 23:56:530B / 17B / 19B

Perl _

RankUserSizeTimeDateStatistics
1tails340.04412021/03/15 14:03:470B / 14B / 20B

Python _

RankUserSizeTimeDateStatistics
1Dingledooper410.09122021/03/12 16:38:460B / 24B / 14B
2xnor410.09242021/03/12 21:04:420B / 24B / 14B
3lynn410.09302021/03/14 23:07:310B / 24B / 14B
4mitchs420.09262021/03/12 15:54:310B / 25B / 16B
5_420.09252021/03/13 06:36:240B / ?B / ?B
6kops420.09092021/03/13 07:14:150B / 25B / 15B
7JoKing440.09152021/03/12 17:09:110B / 25B / 16B
8primo450.09132021/03/12 15:35:440B / 24B / 20B
9Sisyphus450.09242021/03/12 16:21:520B / 25B / 18B
10vezzick490.08982021/03/13 08:51:541B / ?B / ?B

JavaScript _

RankUserSizeTimeDateStatistics
1ZED.CWT620.06152021/03/12 14:04:300B / 35B / 27B
2KrausRaus620.06122021/09/21 12:33:580B / 38B / 23B

BASIC _

RankUserSizeTimeDateStatistics
1pooq530.03142021/03/15 17:48:060B / ?B / ?B

Perl6 _

RankUserSizeTimeDateStatistics
1ludo141.45592021/03/15 21:19:130B / 7B / 7B
2JoKing141.17002021/03/16 11:55:340B / 7B / 7B
3Sisyphus141.14292021/03/16 11:56:060B / 7B / 7B
4lynn141.20662021/03/16 21:31:450B / 7B / 7B

J _

RankUserSizeTimeDateStatistics
1pooq250.14192021/03/18 07:53:000B / ?B / ?B
2tails (pooq)240.07172021/03/26 19:43:280B / 8B / 16B

Jelly _

RankUserSizeTimeDateStatistics
1hako70.44882021/03/26 20:12:294B / 3B / 0B

Haskell _

RankUserSizeTimeDateStatistics
1lynn530.04662021/03/13 23:11:550B / 31B / 20B
2xnor550.04802021/03/13 21:00:430B / 31B / 21B

Octave _

RankUserSizeTimeDateStatistics
1pooq430.42522021/03/17 16:45:110B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1ludo370.04112021/03/18 21:16:130B / 18B / 19B
2mitchs (ludo)360.04242021/03/19 04:01:320B / 17B / 19B
3Fleur370.04292021/06/02 14:34:390B / ?B / ?B

Bash _

RankUserSizeTimeDateStatistics
1ludo360.02052021/03/18 21:15:420B / 18B / 11B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails420.05122021/03/12 09:45:200B / 16B / 22B

Zsh _

RankUserSizeTimeDateStatistics
1ludo360.02392021/03/18 21:15:480B / 18B / 11B

bc _

RankUserSizeTimeDateStatistics
1ludo460.03862021/03/18 21:17:460B / 24B / 21B

xgawk _

RankUserSizeTimeDateStatistics
1ludo370.05402021/03/18 21:16:180B / 18B / 19B

R _

RankUserSizeTimeDateStatistics
1olf460.34152021/03/12 17:50:060B / 23B / 22B
2ludo460.51532021/03/18 21:11:550B / 23B / 22B

GolfScript _

RankUserSizeTimeDateStatistics
1tails130.06522021/03/12 09:06:540B / 2B / 11B
2Darren Smith140.06762021/03/13 00:23:550B / 4B / 10B

gs2 _

RankUserSizeTimeDateStatistics
1tails80.23102021/03/12 08:52:062B / 3B / 2B
2mitchs80.19472021/03/12 10:06:122B / 3B / 2B
3whio90.20162021/03/17 00:44:232B / 3B / 3B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o466.62802021/03/12 12:24:392B / 29B / 11B

Language Ranking_

RankLangUserSizeScore
1Jellyhako710000
2gs2tails88750
3GolfScripttails135384
4Perl6ludo145000
5Jtails (pooq)242916
6Perltails342058
7Bashludo361944
8Zshludo361944
9AWKmitchs (ludo)361944
10Ruby2Dingledooper371891
11xgawkludo371891
12RubySisyphus381842
13PythonDingledooper411707
14Bash (builtins)tails421666
15Octavepooq431627
16Scalarotary-o461521
17Rolf461521
18bcludo461521
19Haskelllynn531320
20BASICpooq531320
21JavaScriptZED.CWT621129

return to the top page