Shuffle Twice

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

Shuffle input lines.
Suppose the number of lines is 2N, the N+1th line comes first, then the first line comes, the N+2th line comes next, the second line comes next, and so forth after shuffled once. Do it twice.
-- nn

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Sample output:

13
9
5
1
14
10
6
2
15
11
7
3
16
12
8
4

Sample input:_

GolfScript
J
Perl
Ruby
Python
vi
FlogScript
JavaScript
AWK
Groovy
C
goruby
PHP
z80
Haskell
K
Bash
sed
BASIC
Common LISP
Lua
Maxima
Io
Arc
R
Postscript
Scheme
Burlesque
OCaml
Fortran
dc
Pascal
Zsh
Xtal
Logo
PARI/GP
Scala
REXX
Asymptote
Octave
Prolog
Smalltalk
bc
Befunge
fish
D
wake
Tcl
xgawk
Clojure
A+
Perl6
Icon
REBOL
Java
m4
Forth
Cyan
DOS
Erlang
Universal Lambda
C++
C#
Brainfuck
QCL
Kite
SNOBOL
LilyPond
Go
Curry
COBOL
Nemerle
Minus
Unlambda
Ada
Mind
gnuplot
LMNtal
Rust
Euphoria
D-compile-time
Whitespace
ObjC
Python3
FerNANDo
Lazy-K
Pefunge
gas
Malbolge
Grass
JVM
x86
Piet
Whirl
VHDL
CLC-INTERCAL

Sample output:

Minus
xgawk
R
GolfScript
Unlambda
Clojure
Postscript
J
Ada
A+
Scheme
Perl
Mind
Perl6
Burlesque
Ruby
gnuplot
Icon
OCaml
Python
LMNtal
REBOL
Fortran
vi
Rust
Java
dc
FlogScript
Euphoria
m4
Pascal
JavaScript
D-compile-time
Forth
Zsh
AWK
Whitespace
Cyan
Xtal
Groovy
ObjC
DOS
Logo
C
Python3
Erlang
PARI/GP
goruby
FerNANDo
Universal Lambda
Scala
PHP
Lazy-K
C++
REXX
z80
Pefunge
C#
Asymptote
Haskell
gas
Brainfuck
Octave
K
Malbolge
QCL
Prolog
Bash
Grass
Kite
Smalltalk
sed
JVM
SNOBOL
bc
BASIC
x86
LilyPond
Befunge
Common LISP
Piet
Go
fish
Lua
Whirl
Curry
D
Maxima
VHDL
COBOL
wake
Io
CLC-INTERCAL
Nemerle
Tcl
Arc

Sample input:_

North
North by East
North NorthEast
NorthEast by North
NorthEast
NorthEast by East
East NorthEast
East by North
East
East by South
East SouthEast
SouthEast by East
SouthEast
SouthEast by South
South SouthEast
South by East
South
South by West
South SouthWest
SouthWest by South
SouthWest
SouthWest by West
West SouthWest
West by South
West
West by North
West NorthWest
NorthWest by West
NorthWest
NorthWest by North
North NorthWest
North by West

Sample output:

West
South
East
North
West by North
South by West
East by South
North by East
West NorthWest
South SouthWest
East SouthEast
North NorthEast
NorthWest by West
SouthWest by South
SouthEast by East
NorthEast by North
NorthWest
SouthWest
SouthEast
NorthEast
NorthWest by North
SouthWest by West
SouthEast by South
NorthEast by East
North NorthWest
West SouthWest
South SouthEast
East NorthEast
North by West
West by South
South by East
East by North

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock370.03962013/08/09 11:57:540B / 10B / 27B
2leonid370.04622013/08/13 06:02:050B / 10B / 25B
3primo380.03842013/08/10 18:52:460B / 12B / 25B
4Histocrat470.04512013/08/09 11:24:460B / 20B / 26B

Perl _

RankUserSizeTimeDateStatistics
1tails310.03292013/08/11 00:32:320B / 13B / 18B
2primo330.03622013/08/09 17:46:110B / 13B / 20B
3el1n340.03762013/08/10 17:19:060B / 15B / 19B
4Hem360.03242013/08/16 10:38:540B / 16B / 20B
5brx400.03282013/08/11 18:45:320B / 12B / 27B
6BioFALSE680.03372013/12/10 07:40:210B / 28B / 37B

Python _

RankUserSizeTimeDateStatistics
1leonid650.08592013/08/21 08:47:190B / 29B / 35B
2clock650.11822013/08/21 22:16:370B / 30B / 35B
3twobit670.09842013/08/10 23:42:510B / 36B / 27B
4purintai670.09842013/08/11 10:24:530B / 37B / 27B
5primo670.15322013/08/13 15:18:360B / 36B / 27B
6hallvabo720.09132013/08/10 22:59:370B / 26B / 43B
7rolf720.09272013/11/10 01:29:390B / 37B / 31B
8undergroundmonorail1030.09302014/07/11 23:16:380B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1primo630.20462013/08/13 15:26:090B / 26B / 37B

Io _

RankUserSizeTimeDateStatistics
1teebee700.25442013/08/12 06:01:540B / 51B / 16B
2pooq740.25942013/08/10 15:56:580B / 53B / 18B

JavaScript _

RankUserSizeTimeDateStatistics
1copy590.09772013/08/10 20:39:450B / ?B / ?B
2Shmiddty590.05412013/08/13 07:38:190B / 30B / 29B
3650.06602013/08/10 09:44:420B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1tehtmi820.03582013/11/09 13:26:330B / 45B / 31B

Xtal _

RankUserSizeTimeDateStatistics
1clock670.04982013/09/29 09:58:510B / 36B / 30B
2teebee670.06102015/02/07 20:28:150B / 35B / 31B

J _

RankUserSizeTimeDateStatistics
1I., S.270.06692013/08/11 20:53:050B / 10B / 17B
2medialuna570.06952014/08/29 17:27:560B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1teebee150.02362013/08/10 13:13:460B / 4B / 10B
2twobit150.02122013/08/10 23:02:510B / 4B / 10B
3clock150.02202013/08/11 10:27:240B / 4B / 10B
4I., S.190.03152013/08/11 20:51:000B / 5B / 14B

C _

RankUserSizeTimeDateStatistics
1tails590.03172013/08/11 22:40:110B / 30B / 29B
2nu590.03972013/08/12 01:00:530B / 31B / 28B
3benl990.03182013/08/29 12:30:060B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1henkma830.03912013/08/14 07:36:490B / 50B / 30B
2nooodl860.03292013/08/19 21:03:300B / ?B / ?B
3I., S.890.03832013/08/15 22:07:580B / 51B / 35B

AWK _

RankUserSizeTimeDateStatistics
1llhuii510.03162015/02/07 20:12:000B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1tails1090.04522013/09/04 23:04:540B / 31B / 57B
2clock1120.06652013/09/05 01:15:380B / 27B / 63B

jq _

RankUserSizeTimeDateStatistics
1clock480.03482015/02/11 02:32:260B / 19B / 27B

Bash _

RankUserSizeTimeDateStatistics
1eban670.06462013/08/16 02:52:000B / 34B / 23B

wake _

RankUserSizeTimeDateStatistics
1tails1090.08112013/09/04 23:25:190B / 15B / 91B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii510.03272015/02/07 20:22:440B / 23B / 28B

R _

RankUserSizeTimeDateStatistics
1teebee470.42282013/08/12 11:21:050B / 30B / 17B
2pooq650.47742013/08/10 17:04:100B / 38B / 25B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1240.04312016/06/13 07:26:450B / 0B / 124B

GolfScript _

RankUserSizeTimeDateStatistics
1Volatility180.06412013/08/08 21:53:050B / 7B / 11B
2clock180.05962013/08/09 02:00:330B / 7B / 11B
3tails180.07902013/08/09 15:44:440B / 6B / 12B
4twobit180.07052013/08/12 22:58:010B / 7B / 11B
5mitchs180.05872016/06/12 16:33:050B / 7B / 11B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs100.23872016/06/12 16:31:183B / 3B / 3B

Burlesque _

RankUserSizeTimeDateStatistics
1clock160.04152013/08/12 23:08:140B / 12B / 4B
2Hendrik160.03782015/04/26 12:05:290B / 12B / 4B
3teebee170.03942013/08/12 08:58:260B / 11B / 6B
4teebe170.04072013/08/13 05:08:150B / 11B / 6B

Vim _

RankUserSizeTimeDateStatistics
1udioica290.05542017/05/12 17:22:300B / 16B / 8B

Logo _

RankUserSizeTimeDateStatistics
1clock820.04112015/02/06 00:30:440B / 49B / 20B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs1010000
2Kteebee156666
3Burlesqueclock166250
4GolfScriptVolatility185555
5JI., S.273703
6Vimudioica293448
7Perltails313225
8Rubyclock372702
9Rteebee472127
10jqclock482083
11AWKllhuii511960
12xgawkllhuii511960
13JavaScriptcopy591694
14Ctails591694
15PHPprimo631587
16Pythonleonid651538
17Basheban671492
18Xtalclock671492
19Ioteebee701428
20Luatehtmi821219
21Logoclock821219
22Haskellhenkma831204
23sedtails109917
24waketails109917
25Brainfuckmitchs124806

return top