Pair Spacing 2

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

Insert spaces every two characters (starting form the first character) in the input string so long as there are characters left in the string and there is no adjacent space.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

Sequence spacing sample

Sample output:

Se qu en ce s pa ci ng s am pl e

Sample input:_

Multiple  spaces  need to   be handled  too

Sample output:

Mu lt ip le  sp ac es  ne ed t o   be h an dl ed  to o

Sample input:_

Insert comment, deconstruct.  Notification of issuance occurs.  Begin relevant external irrelevance.  Deterioration created through aggregation.

Sample output:

In se rt c om me nt , de co ns tr uc t.  No ti fi ca ti on o f is su an ce o cc ur s.  Be gi n re le va nt e xt er na l ir re le va nc e.  De te ri or at io n cr ea te d th ro ug h ag gr eg at io n.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs330.03212017/08/15 14:09:520B / 10B / 17B
2rotary-o400.03242017/07/30 13:50:120B / 16B / 23B
3Histocrat420.03212017/07/29 06:02:040B / 12B / 29B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs330.15472017/08/15 14:10:000B / 10B / 17B
2rotary-o400.15442017/07/30 13:49:590B / 16B / 23B

Perl _

RankUserSizeTimeDateStatistics
1tails280.03192017/07/27 23:36:530B / 9B / 16B
2mitchs280.03182017/08/15 14:08:420B / 9B / 16B

Python _

RankUserSizeTimeDateStatistics
1mitchs570.07292017/08/15 23:21:400B / 28B / 23B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs540.11802017/08/15 23:52:540B / 25B / 24B

JavaScript _

RankUserSizeTimeDateStatistics
1ETHproductions630.04322017/08/01 07:37:410B / 31B / 31B

C _

RankUserSizeTimeDateStatistics
1nu620.02712017/08/06 23:13:130B / 37B / 25B

Haskell _

RankUserSizeTimeDateStatistics
1henkma570.03922017/08/11 13:56:130B / 26B / 24B
2Icewing680.03702017/08/10 21:51:280B / 32B / 32B

sed _

RankUserSizeTimeDateStatistics
1tails200.03132017/07/28 17:04:490B / 2B / 15B
2mitchs200.03142017/08/15 14:06:250B / 2B / 15B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails810.17412017/07/28 17:41:220B / 37B / 28B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)650.06322017/08/18 09:54:540B / 0B / 64B

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs190.04432017/08/15 22:48:270B / 1B / 17B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs130.18322017/08/15 21:59:595B / 4B / 4B
2tails150.19762017/07/28 16:39:146B / 6B / 3B

Vim _

RankUserSizeTimeDateStatistics
1udioica210.02812017/07/28 07:29:590B / 12B / 8B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o565.06332017/07/30 11:19:060B / 36B / 15B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs1310000
2GolfScriptmitchs196842
3sedtails206500
4Vimudioica216190
5Perltails284642
6Rubymitchs333939
7Ruby2mitchs333939
8Python3mitchs542407
9Scalarotary-o562321
10Haskellhenkma572280
11Pythonmitchs572280
12Cnu622096
13JavaScriptETHproductions632063
14Brainfuckmitchs (cheat)652000
15Bash (builtins)tails811604

return top