Pair Spacing 3

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. Any spaces in the input will restart the grouping.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

Sequence spacing demonstration

Sample output:

Se qu en ce sp ac in g de mo ns tr at io n

Sample input:_

Again,  multiple spacing    can  induce   issues in  non-validated      programs.

Sample output:

Ag ai n,  mu lt ip le sp ac in g    ca n  in du ce   is su es in  no n- va li da te d      pr og ra ms .

Sample input:_

The current problem requires only simple logical structures when implementing the specification completely with most popular programming languages.

Sample output:

Th e cu rr en t pr ob le m re qu ir es on ly si mp le lo gi ca l st ru ct ur es wh en im pl em en ti ng th e sp ec if ic at io n co mp le te ly wi th mo st po pu la r pr og ra mm in g la ng ua ge s.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs310.03212017/08/15 13:03:520B / 12B / 14B
2rotary-o310.03642017/08/28 00:12:200B / 11B / 18B
3tails310.03902017/08/29 18:16:370B / 9B / 19B
4Histocrat320.03202017/07/28 22:09:090B / 10B / 20B
5letranger320.03382017/09/18 11:18:540B / 11B / 19B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs310.16412017/08/15 13:10:160B / 12B / 14B
2rotary-o310.15172017/08/28 00:12:060B / 11B / 18B
3tails310.18282017/08/29 18:16:490B / 9B / 19B
4letranger320.14612017/09/18 11:18:450B / 11B / 19B

Perl _

RankUserSizeTimeDateStatistics
1mitchs240.03192017/08/15 13:12:330B / 11B / 11B
2tails240.03212017/08/15 14:29:560B / 10B / 10B
3llhuii240.03372017/09/18 20:03:330B / 11B / 11B
4letranger270.03212017/09/18 17:02:320B / 9B / 14B

Python _

RankUserSizeTimeDateStatistics
1mitchs530.07202017/08/15 23:23:060B / 30B / 18B
2llhuii530.14412017/09/18 20:10:330B / 30B / 19B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs500.11452017/08/15 23:53:570B / 27B / 19B

C _

RankUserSizeTimeDateStatistics
1nu600.03182017/08/06 21:56:460B / 31B / 28B
2tails600.03162017/08/15 20:25:190B / 29B / 30B

Haskell _

RankUserSizeTimeDateStatistics
1henkma740.08962017/08/11 16:01:440B / 32B / 34B
2Icewing850.03662017/08/10 21:59:060B / 36B / 41B

sed _

RankUserSizeTimeDateStatistics
1mitchs190.03122017/08/15 13:16:360B / 5B / 12B
2tails190.03132017/08/15 14:32:460B / 5B / 12B
3llhuii190.03142017/09/18 20:11:390B / 5B / 12B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii540.43692017/09/19 22:04:320B / 20B / 24B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)610.06572017/08/19 10:25:411B / 0B / 59B

GolfScript _

RankUserSizeTimeDateStatistics
1lynn140.04082017/07/30 19:03:220B / 4B / 9B
2tails140.04112017/07/30 23:44:130B / 4B / 9B
3mitchs140.04402017/08/15 13:27:370B / 4B / 9B

gs2 _

RankUserSizeTimeDateStatistics
1tails70.20422017/07/30 23:48:564B / 2B / 1B
2whio70.17772017/08/03 01:13:303B / 2B / 2B
3mitchs70.17402017/08/15 13:21:243B / 2B / 2B

Vim _

RankUserSizeTimeDateStatistics
1udioica190.02712017/07/28 07:15:000B / 6B / 10B

Scala _

RankUserSizeTimeDateStatistics
1rotary-o547.16032017/08/28 00:11:550B / 30B / 22B

Language Ranking_

RankLangUserSizeScore
1gs2tails710000
2GolfScriptlynn145000
3Vimudioica193684
4sedmitchs193684
5Perlmitchs242916
6Rubymitchs312258
7Ruby2mitchs312258
8Python3mitchs501400
9Pythonmitchs531320
10Scalarotary-o541296
11Bash (builtins)llhuii541296
12Cnu601166
13Brainfuckmitchs (cheat)611147
14Haskellhenkma74945

return top