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
2Fleur (pooq)390.42622021/10/22 11:32:300B / 21B / 18B

AWK _

RankUserSizeTimeDateStatistics
1ludo370.04112021/03/18 21:16:130B / 18B / 19B
2Fleur350.04142021/10/22 10:31:170B / 17B / 18B
3mitchs (ludo)360.04242021/03/19 04:01:320B / 17B / 19B

Bash _

RankUserSizeTimeDateStatistics
1ludo360.02052021/03/18 21:15:420B / 18B / 11B
2eban330.02042021/10/22 13:32:040B / 15B / 12B
3Fleur (ludo)340.02282021/10/22 11:25:380B / 18B / 9B

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

Nibbles _

RankUserSizeTimeDateStatistics
1tails50.04632022/02/03 21:34:234B / 1B / 0B

Scala _

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

Language Ranking_

RankLangUserSizeScore
1Nibblestails510000
2Jellyhako77142
3gs2tails86250
4GolfScripttails133846
5Perl6ludo143571
6Jtails (pooq)242083
7Basheban331515
8Perltails341470
9AWKFleur351428
10Zshludo361388
11Ruby2Dingledooper371351
12xgawkludo371351
13RubySisyphus381315
14OctaveFleur (pooq)391282
15PythonDingledooper411219
16Bash (builtins)tails421190
17Scalarotary-o461086
18Rolf461086
19bcludo461086
20Haskelllynn53943
21BASICpooq53943
22JavaScriptZED.CWT62806

return to the top page