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
2tails330.03222017/09/21 13:37:200B / 9B / 21B
3rotary-o370.03382017/08/29 01:01:310B / 10B / 22B
4letranger400.02602017/09/18 12:11:540B / 13B / 23B
5Histocrat420.03212017/07/29 06:02:040B / 12B / 29B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs330.15472017/08/15 14:10:000B / 10B / 17B
2tails330.14422017/09/21 13:39:420B / 9B / 21B
3rotary-o370.14842017/08/29 01:01:180B / 10B / 22B
4letranger400.14452017/09/18 12:10:490B / 13B / 23B

Perl _

RankUserSizeTimeDateStatistics
1tails280.03192017/07/27 23:36:530B / 9B / 16B
2mitchs280.03182017/08/15 14:08:420B / 9B / 16B
3llhuii280.03242017/09/17 16:16:400B / 9B / 16B

Python _

RankUserSizeTimeDateStatistics
1mitchs570.07292017/08/15 23:21:400B / 28B / 23B
2llhuii570.07352017/09/18 20:13:540B / 28B / 24B

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
2tails620.03152017/09/21 17:02:280B / 32B / 29B

Haskell _

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

AWK _

RankUserSizeTimeDateStatistics
1mitchs230.03172017/11/05 16:56:390B / 4B / 16B

sed _

RankUserSizeTimeDateStatistics
1tails180.03132017/09/21 09:33:080B / 4B / 9B
2mitchs180.03132017/09/21 13:19:070B / 4B / 9B
3llhuii180.03132017/09/21 20:47:580B / 4B / 10B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii(alt2)370.22562017/09/23 22:51:360B / 14B / 17B
2tails450.04382017/09/20 18:23:320B / 18B / 17B
3llhuii460.34332017/09/20 21:12:090B / 17B / 21B
4llhuii(alt)460.04452017/09/21 22:56:450B / 18B / 19B

xgawk _

RankUserSizeTimeDateStatistics
1mitchs230.03252017/11/05 16:57:590B / 4B / 16B

Brainfuck _

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

GolfScript _

RankUserSizeTimeDateStatistics
1mitchs140.04532017/09/21 13:57:320B / 1B / 12B
2tails140.04712017/09/21 15:41:560B / 5B / 8B

gs2 _

RankUserSizeTimeDateStatistics
1tails60.17932017/09/21 15:30:573B / 2B / 1B
2mitchs60.18262017/09/21 16:00:093B / 2B / 1B

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
1gs2tails610000
2GolfScriptmitchs144285
3sedtails183333
4Vimudioica212857
5AWKmitchs232608
6xgawkmitchs232608
7Perltails282142
8Rubymitchs331818
9Ruby2mitchs331818
10Bash (builtins)llhuii(alt2)371621
11Python3mitchs541111
12Scalarotary-o561071
13Haskellhenkma571052
14Pythonmitchs571052
15Cnu62967
16JavaScriptETHproductions63952
17Brainfuckmitchs (cheat)65923

return to the top page