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
4jpl310.03382017/12/28 00:47:040B / ?B / ?B
5llhuii310.03202018/03/03 21:30:150B / 11B / 18B
6Histocrat320.03202017/07/28 22:09:090B / 10B / 20B
7letranger320.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
4jpl310.14742017/12/28 00:48:150B / ?B / ?B
5llhuii310.15662018/03/03 21:30:380B / 11B / 18B
6letranger320.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
4teebee240.03202017/10/23 16:44:560B / 10B / 10B
5brx240.03212018/01/03 07:19:020B / 10B / 10B
6letranger270.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
2llhuii500.12352017/12/09 17:00:570B / 27B / 20B

JavaScript _

RankUserSizeTimeDateStatistics
1xulapp440.03982018/01/13 02:18:220B / 24B / 18B
2FizzyTea440.03872018/02/01 02:11:090B / 24B / 18B
3teebee440.03702018/02/01 06:38:190B / 24B / 18B
4llhuii440.03932018/03/03 21:28:250B / 24B / 18B

Lua _

RankUserSizeTimeDateStatistics
1tehtmi410.03162018/07/28 15:19:200B / 18B / 21B

C _

RankUserSizeTimeDateStatistics
1nu600.03182017/08/06 21:56:460B / 31B / 28B
2tails600.03162017/08/15 20:25:190B / 29B / 30B
3llhuii620.03152017/12/10 11:12:290B / 30B / 31B
4TokusiN660.03152018/02/13 20:46:070B / 33B / 32B

Haskell _

RankUserSizeTimeDateStatistics
1henkma660.03712018/03/15 20:42:010B / 34B / 26B
2amb710.04372018/03/14 09:14:040B / 29B / 39B
3Icewing850.03662017/08/10 21:59:060B / 36B / 41B

AWK _

RankUserSizeTimeDateStatistics
1llhuii230.03122018/03/03 22:27:300B / 4B / 17B
2uu230.03112018/03/05 13:21:530B / 4B / 17B

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
4uu190.03132018/01/30 09:12:510B / 5B / 12B
5kritixilithos190.03132018/05/17 01:53:340B / 5B / 12B
6rotary-o190.04212023/09/18 22:55:390B / 5B / 12B
7McBusLuck280.04412023/09/19 00:53:270B / 5B / 17B

Bash (builtins) _

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

bc _

RankUserSizeTimeDateStatistics
1McBusLuck3800.04192020/08/15 19:23:460B / 234B / 18B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii230.03532018/03/03 22:31:380B / 4B / 17B

R _

RankUserSizeTimeDateStatistics
1teebee490.34142021/05/05 18:16:180B / 24B / 23B

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
2DJMcMayhem190.02802018/01/19 09:49:360B / 5B / 11B
3200.02952018/01/19 09:44:540B / ?B / ?B
4kana220.02752018/04/05 10:59:070B / 7B / 12B
5kritixilithos220.02802018/05/17 01:57:590B / 8B / 11B

Scala _

RankUserSizeTimeDateStatistics
1teebee463.97122018/01/25 10:09:590B / 26B / 17B
2llhuii464.00582018/03/03 21:27:420B / 26B / 18B
3rotary-o464.07682018/03/08 01:43:350B / 26B / 18B

Language Ranking_

RankLangUserSizeScore
1gs2tails710000
2GolfScriptlynn145000
3Vimudioica193684
4sedmitchs193684
5AWKllhuii233043
6xgawkllhuii233043
7Perlmitchs242916
8Rubymitchs312258
9Ruby2mitchs312258
10Luatehtmi411707
11JavaScriptxulapp441590
12Scalateebee461521
13Rteebee491428
14Python3mitchs501400
15Pythonmitchs531320
16Bash (builtins)llhuii541296
17Cnu601166
18Brainfuckmitchs (cheat)611147
19Haskellhenkma661060
20bcMcBusLuck380184

return to the top page