CahartcreS awppnig

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

Given a single string as input, output a string with its inner characters swapped. This can be done by:

- Leaving the first letter as is
- Swapping each pair of characters thereafter
- Leaving the last letter as is. If the string is of an odd length (i.e. the length of the string mod 2 is 1), leave the last two letters as they are.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

School

Sample output:

Shcool

Sample input:_

Never gonna give you up

Sample output:

Nvereg noang vi eoy uup

Sample input:_

Character

Sample output:

Cahartcer

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs370.04502020/01/08 09:20:490B / 10B / 27B
2clock370.03202020/01/12 10:48:130B / 11B / 23B

Ruby2 _

RankUserSizeTimeDateStatistics
1letranger370.17552020/01/04 18:20:280B / 19B / 16B
2mitchs370.18522020/01/08 09:23:360B / 14B / 21B

Perl _

RankUserSizeTimeDateStatistics
1tails320.03222020/01/05 10:38:540B / 9B / 21B
2clock320.03312020/01/07 21:56:320B / 9B / 21B
3mitchs320.03212020/01/08 08:46:250B / 9B / 21B
4McBusLuck350.03262020/01/05 07:54:130B / 11B / 21B
5370.02382020/01/07 00:13:100B / 9B / 28B

Python _

RankUserSizeTimeDateStatistics
1clock590.07182020/01/07 22:02:000B / 29B / 27B
2mitchs590.07392020/01/08 09:06:130B / 29B / 27B
3hallvabo620.12482020/02/03 22:16:110B / 29B / 30B
4rolf970.07402020/01/08 23:20:010B / 50B / 33B

Python3 _

RankUserSizeTimeDateStatistics
1clock560.15122020/01/07 21:58:220B / 26B / 28B
2mitchs560.13122020/01/08 09:07:450B / 26B / 28B
3mypetlion760.12872020/01/07 08:21:380B / 42B / 30B

C _

RankUserSizeTimeDateStatistics
1McBusLuck820.03142020/01/13 05:58:210B / 54B / 24B
2sadakiyo1240.03162020/01/17 09:33:360B / ?B / ?B
3rolf1680.03142020/01/19 05:11:550B / 93B / 61B

sed _

RankUserSizeTimeDateStatistics
1mitchs310.03132020/01/27 00:26:540B / 7B / 21B
2tails310.03132020/01/27 14:41:320B / 7B / 23B
3McBusLuck310.04292020/02/22 03:42:370B / 7B / 21B
4clock340.03142020/01/06 19:44:170B / 7B / 26B
5390.03132020/01/28 21:53:170B / 8B / 27B

Bash _

RankUserSizeTimeDateStatistics
1McBusLuck350.00732020/01/05 07:53:330B / 12B / 21B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails590.00052020/01/06 18:47:270B / 42B / 7B
2McBusLuck620.04272020/02/26 01:49:120B / 41B / 14B

make _

RankUserSizeTimeDateStatistics
1tails900.03672020/01/06 18:49:170B / 62B / 19B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs300.03152020/01/08 10:32:260B / 0B / 30B
2angel_p57310.03532020/02/04 13:24:480B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1tails110.05292020/01/08 13:36:360B / 2B / 9B
2clock110.04442020/01/13 20:02:310B / 2B / 9B
3mitchs110.03932020/01/18 14:15:590B / 2B / 9B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs80.18712020/01/08 15:28:164B / 4B / 0B
2tails80.18322020/01/08 19:05:023B / 3B / 2B

Burlesque _

RankUserSizeTimeDateStatistics
1clock150.03342020/01/13 20:13:190B / 7B / 8B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails2560.03282020/01/09 08:53:240B / 133B / 123B

Vim _

RankUserSizeTimeDateStatistics
1clock140.03222020/01/06 18:58:530B / 13B / 1B
2150.03932020/02/17 01:54:060B / 14B / 1B

Scala _

RankUserSizeTimeDateStatistics
1clock504.20322020/01/06 15:38:590B / 25B / 24B
2rotary-o504.16222020/02/23 00:46:340B / 25B / 25B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs810000
2GolfScripttails117272
3Vimclock145714
4Burlesqueclock155333
5Brainfuckmitchs302666
6sedmitchs312580
7Perltails322500
8BashMcBusLuck352285
9Ruby2letranger372162
10Rubymitchs372162
11Scalaclock501600
12Python3clock561428
13Bash (builtins)tails591355
14Pythonclock591355
15CMcBusLuck82975
16maketails90888
17Lazy-Ktails256312

return to the top page