Reverse lines and words

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

Take a multi-line string as input. Your job is to print it, with the lines and words reversed. A word is defined as a series of characters without 0x20 (Space).

--Erik the Golfer

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.

Sample output:

5. line is This
4. line is This
3. line is This
2. line is This
1. line is This

Sample input:_

This is a testcase so that you won't hardcode your solution that easily. Y'
know, 'cause ppl constantly hardcode their "solutions" here in anagol. Please,
DO NOT do that!

Sample output:

that! do NOT DO
Please, anagol. in here "solutions" their hardcode constantly ppl 'cause know,
Y' easily. that solution your hardcode won't you that so testcase a is This

Sample input:_

If you can hardcode two solutions, you can't hardcode THREE!
MWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA!
7 3 222 1847 44 6 +-*/%^sqrt

Sample output:

+-*/%^sqrt 6 44 1847 222 3 7
MWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA!
THREE! hardcode can't you solutions, two hardcode can you If

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs300.03662017/02/12 00:36:000B / 17B / 11B
2xsot300.03662017/02/13 11:15:080B / 17B / 11B
3Histocrat330.03402017/02/23 13:38:380B / 18B / 14B

Ruby2 _

RankUserSizeTimeDateStatistics
1xsot330.26342017/02/13 11:15:310B / 17B / 14B
2mitchs330.21722017/02/14 23:36:260B / 17B / 14B

Perl _

RankUserSizeTimeDateStatistics
1tails280.03382017/02/14 09:04:180B / 16B / 11B
2mitchs290.03242017/02/15 00:26:490B / 18B / 9B
3%20360.05022017/02/20 19:43:020B / 15B / 18B

Python _

RankUserSizeTimeDateStatistics
1mitchs640.09852017/02/12 12:48:280B / 38B / 24B
2hallvabo640.08612017/02/12 19:02:340B / 38B / 25B
3xsot640.10022017/02/13 10:53:280B / 38B / 24B
4mitchs (alt)670.09642017/02/12 12:55:290B / 34B / 29B
5rolf730.12502017/02/12 00:18:030B / 35B / 34B
6joey1370.12092017/02/20 13:10:470B / ?B / ?B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs520.20002017/02/12 12:56:510B / 26B / 22B
2xsot520.25292017/02/13 11:42:300B / 28B / 21B

Scheme _

RankUserSizeTimeDateStatistics
1kaki830.33582017/02/18 00:02:450B / 56B / 24B

JavaScript _

RankUserSizeTimeDateStatistics
1FizzyTea700.11632017/02/13 17:55:500B / 39B / 31B

Perl6 _

RankUserSizeTimeDateStatistics
1tanon361.45892017/02/12 00:37:540B / 30B / 3B

C _

RankUserSizeTimeDateStatistics
1nu560.03222017/02/14 23:57:530B / 29B / 27B
2tails560.03212017/02/17 12:39:320B / 29B / 27B
3kotatsugame830.03202017/02/11 18:53:250B / 47B / 35B

Haskell _

RankUserSizeTimeDateStatistics
1henkma550.03292017/02/14 22:40:470B / 30B / 20B
2dianne570.03402017/02/18 10:42:350B / 30B / 24B
3lynn570.03352017/02/19 07:02:350B / ?B / ?B
4Hendrik600.03922017/02/13 19:05:370B / 49B / 10B
5_600.03272017/02/14 18:27:150B / 49B / 10B
6kaki600.03432017/02/17 23:58:200B / 49B / 10B
7petercommand600.03692017/03/07 20:18:180B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1tails410.03412017/02/13 11:56:440B / 7B / 28B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails370.01692017/02/13 14:10:320B / 16B / 16B

make _

RankUserSizeTimeDateStatistics
1tails1380.03922017/02/13 12:34:110B / 68B / 49B

wake _

RankUserSizeTimeDateStatistics
1tails250.08792017/02/17 15:59:210B / 3B / 19B

R _

RankUserSizeTimeDateStatistics
1ludo700.42752017/02/25 03:25:190B / 42B / 25B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs730.03422017/02/13 13:33:120B / 0B / 73B

GolfScript _

RankUserSizeTimeDateStatistics
1tails (the test data aside, nice problem.)190.07252017/02/13 10:31:500B / 1B / 18B
2mitchs (how to make a good impression: 1. publish problems with test data that is too short. 2. complain about solvers using embed, as if they are at fault.)200.05332017/02/11 06:32:390B / 4B / 14B
3whio200.05982017/02/11 07:48:350B / 6B / 13B
4mitchs200.06662017/02/11 10:59:300B / 4B / 16B
5lynn200.07572017/02/13 08:35:370B / 4B / 14B
6Erik the Golfer210.05892017/02/11 03:31:390B / 4B / 15B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs70.27052017/02/11 07:31:531B / 0B / 4B
2whio70.24682017/02/11 07:45:041B / 0B / 4B
3tails70.34522017/02/13 10:40:091B / 0B / 4B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik120.03592017/02/12 00:03:380B / 6B / 6B

Vim _

RankUserSizeTimeDateStatistics
1udioica330.09182017/05/12 18:20:224B / 21B / 5B

goruby _

RankUserSizeTimeDateStatistics
1mitchs190.08132017/02/12 00:06:350B / 6B / 12B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o619.46442017/02/23 02:40:530B / 30B / 31B
2Hendrik789.32062017/02/22 01:06:580B / 50B / 25B
3a1179.24412017/02/16 13:17:200B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs710000
2BurlesqueHendrik125833
3gorubymitchs193684
4GolfScripttails (the test data aside, nice problem.)193684
5waketails252800
6Perltails282500
7Rubymitchs302333
8Ruby2xsot332121
9Vimudioica332121
10Perl6tanon361944
11Bash (builtins)tails371891
12sedtails411707
13Python3mitchs521346
14Haskellhenkma551272
15Cnu561250
16Scalarotary-o611147
17Pythonmitchs641093
18JavaScriptFizzyTea701000
19Rludo701000
20Brainfuckmitchs73958
21Schemekaki83843
22maketails138507

return top