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
3llhuii330.03202018/03/03 21:21:270B / 8B / 22B
4rotary-o370.03382017/08/29 01:01:310B / 10B / 22B
5letranger400.02602017/09/18 12:11:540B / 13B / 23B
6Histocrat420.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
3llhuii330.14722018/03/03 21:21:460B / 8B / 22B
4rotary-o370.14842017/08/29 01:01:180B / 10B / 22B
5letranger400.14452017/09/18 12:10:490B / 13B / 23B

Perl _

RankUserSizeTimeDateStatistics
1teebee270.03202018/01/20 02:55:100B / 12B / 14B
2tails280.03192017/07/27 23:36:530B / 9B / 16B
3mitchs280.03182017/08/15 14:08:420B / 9B / 16B
4llhuii280.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
2llhuii540.11332018/03/03 20:48:430B / 25B / 25B

JavaScript _

RankUserSizeTimeDateStatistics
1llhuii460.03992018/03/03 20:47:270B / 21B / 22B
2FizzyTea460.04122018/03/06 09:06:080B / 21B / 22B
3ETHproductions630.04322017/08/01 07:37:410B / 31B / 31B

Lua _

RankUserSizeTimeDateStatistics
1tehtmi670.03232018/07/28 17:09:340B / 36B / 26B

SNOBOL _

RankUserSizeTimeDateStatistics
1teebee750.04712022/05/14 19:26:010B / 34B / 26B

C _

RankUserSizeTimeDateStatistics
1nu620.02712017/08/06 23:13:130B / 37B / 25B
2tails620.03152017/09/21 17:02:280B / 32B / 29B
3llhuii620.03142017/12/03 21:22:540B / 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
2llhuii230.03112017/12/03 19:46:020B / 4B / 16B
3uu230.03112018/03/12 09:09:480B / 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
4xsot180.03122018/03/03 17:15:140B / 4B / 9B
5rotary-o180.04202023/09/17 19:55:430B / 4B / 9B
6McBusLuck180.04332023/09/19 00:50:010B / 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

bc _

RankUserSizeTimeDateStatistics
1McBusLuck3370.04352020/08/15 19:19:290B / 203B / 29B

xgawk _

RankUserSizeTimeDateStatistics
1mitchs230.03252017/11/05 16:57:590B / 4B / 16B
2llhuii230.03202017/12/03 19:46:070B / 4B / 16B

R _

RankUserSizeTimeDateStatistics
1teebee510.33072021/05/05 17:18:200B / 26B / 23B

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
2FizzyTea210.02762018/03/06 10:21:520B / 7B / 9B

Scala _

RankUserSizeTimeDateStatistics
1llhuii464.10842018/03/03 20:45:500B / 24B / 19B
2rotary-o514.12032018/03/08 01:46:570B / 25B / 24B
3teebee545.17122018/01/25 08:21:240B / 36B / 11B

Language Ranking_

RankLangUserSizeScore
1gs2tails610000
2GolfScriptmitchs144285
3sedtails183333
4Vimudioica212857
5AWKmitchs232608
6xgawkmitchs232608
7Perlteebee272222
8Rubymitchs331818
9Ruby2mitchs331818
10Bash (builtins)llhuii(alt2)371621
11Scalallhuii461304
12JavaScriptllhuii461304
13Rteebee511176
14Python3mitchs541111
15Haskellhenkma571052
16Pythonmitchs571052
17Cnu62967
18Brainfuckmitchs (cheat)65923
19Luatehtmi67895
20SNOBOLteebee75800
21bcMcBusLuck337178

return to the top page