Double even indexed characters

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 an input string, output a string where every other character is repeated.

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

abcde

Sample output:

abbcdde

Sample input:_

testcase2

Sample output:

teesttcaasee2

Sample input:_

new problem

Sample output:

neew  prrobbleem

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs230.03192020/02/02 12:28:520B / 8B / 13B

Ruby2 _

RankUserSizeTimeDateStatistics
1rotary-o240.16672020/02/12 22:59:340B / 10B / 14B
2letranger280.16622020/02/02 08:32:390B / 14B / 12B

Perl _

RankUserSizeTimeDateStatistics
1mitchs190.03222020/02/03 03:05:480B / 6B / 13B
2%20190.03222020/02/03 04:46:320B / 6B / 13B
3tails190.03402020/02/03 09:30:560B / 6B / 13B
4shlomif230.05732020/02/02 16:54:320B / 8B / 13B
5McBusLuck230.03292020/02/03 20:45:120B / 8B / 13B

Python _

RankUserSizeTimeDateStatistics
1xnor (Lynn)400.08762020/02/22 19:24:140B / 25B / 12B

Python3 _

RankUserSizeTimeDateStatistics
1mypetlion400.11612020/02/05 08:15:240B / 25B / 11B
2mitchs400.20972020/02/05 11:11:550B / 25B / 11B
3xnor400.16502020/02/14 20:04:580B / 25B / 11B

JavaScript _

RankUserSizeTimeDateStatistics
1Hendrik410.03942020/02/03 04:56:160B / 22B / 19B
2clock410.05602020/02/13 00:29:200B / 22B / 19B

Lua _

RankUserSizeTimeDateStatistics
1Hendrik380.03572020/02/02 05:30:390B / 17B / 21B
2clock380.03482020/02/12 00:12:070B / 17B / 21B

C _

RankUserSizeTimeDateStatistics
1nu390.37532020/02/05 22:56:210B / 24B / 15B
2tails400.38822020/02/05 18:36:210B / 25B / 15B
3mitchs430.03232020/02/05 11:01:560B / 23B / 20B
4%20450.03252020/02/03 05:13:430B / 24B / 21B
5a520.03982020/02/14 18:04:040B / ?B / ?B
6chocobi540.03152020/02/04 21:06:410B / 29B / 25B
7sadakiyo630.04112020/02/13 07:14:140B / ?B / ?B
8_660.04062020/02/13 07:12:540B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1henkma400.04932020/02/15 03:07:530B / 25B / 10B

AWK _

RankUserSizeTimeDateStatistics
1clock280.04042020/02/13 00:50:380B / 8B / 20B
2cympfh300.04002020/02/10 14:59:430B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1Hendrik140.03122020/02/02 05:20:150B / 3B / 11B
2%20140.03112020/02/03 02:20:410B / 3B / 11B
3tails140.03132020/02/03 09:25:410B / 3B / 11B
4McBusLuck140.03132020/02/03 19:37:240B / 3B / 11B
5eban140.03142020/02/03 21:27:350B / 3B / 11B
6_140.03112020/02/04 04:43:290B / 3B / 11B
7mitchs140.03122020/02/04 11:08:130B / 3B / 11B
8cympfh140.04152020/02/10 14:49:040B / ?B / ?B
9clock140.04202020/02/12 00:14:270B / 3B / 11B

jq _

RankUserSizeTimeDateStatistics
1clock340.04512020/02/14 23:02:410B / 13B / 21B

Bash _

RankUserSizeTimeDateStatistics
1McBusLuck200.00502020/02/03 20:56:150B / 6B / 13B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails360.03622020/02/05 10:55:280B / 19B / 11B
2McBusLuck440.03522020/02/03 19:51:150B / 22B / 18B

Zsh _

RankUserSizeTimeDateStatistics
1Hendrik200.03592020/02/02 05:36:070B / 6B / 13B

wake _

RankUserSizeTimeDateStatistics
1clock250.05082020/02/13 00:57:070B / 3B / 21B

xgawk _

RankUserSizeTimeDateStatistics
1olf280.04242020/02/15 19:51:020B / 9B / 19B

R _

RankUserSizeTimeDateStatistics
1olf470.31742020/02/14 23:29:040B / 23B / 24B
2clock470.32792020/02/15 00:43:400B / 23B / 24B

Brainfuck _

RankUserSizeTimeDateStatistics
1%20130.03352020/02/03 05:25:130B / 0B / 13B

Whitespace _

RankUserSizeTimeDateStatistics
1%20500.06962020/02/03 05:01:070B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1%20100.02432020/02/03 05:03:440B / 1B / 9B
2clock100.04172020/02/13 00:31:300B / 1B / 9B

Hexagony _

RankUserSizeTimeDateStatistics
1hako70.07852020/03/27 16:01:450B / 0B / 7B

GolfScript _

RankUserSizeTimeDateStatistics
1%2080.03932020/02/03 05:40:100B / 1B / 7B
2tails80.03862020/02/03 09:29:110B / 2B / 6B
3mitchs80.06212020/02/04 11:07:570B / 2B / 6B
4clock80.07342020/02/12 00:53:530B / 2B / 6B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs30.19312020/02/03 17:00:402B / 1B / 0B
2tails30.32982020/02/05 10:40:102B / 1B / 0B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik110.12472020/02/02 04:16:550B / 4B / 7B
2clock110.04522020/02/12 00:46:180B / 5B / 6B

FerNANDo _

RankUserSizeTimeDateStatistics
1%20730.10162020/02/03 05:33:260B / 37B / 0B
2tails730.10452020/02/03 09:24:460B / 37B / 0B

Lazy-K _

RankUserSizeTimeDateStatistics
1tails1430.03292020/02/03 10:05:400B / 83B / 60B

Grass _

RankUserSizeTimeDateStatistics
1%20350.03172020/02/08 05:53:120B / 35B / 0B
2tails350.04252020/02/10 16:13:280B / 35B / 0B

z80 _

RankUserSizeTimeDateStatistics
1McBusLuck110.04422020/02/05 08:12:308B / 2B / 1B
2tails110.04582020/02/05 16:27:547B / 2B / 2B

DOS _

RankUserSizeTimeDateStatistics
1McBusLuck207.78632020/02/05 21:27:5015B / 2B / 3B

Vim _

RankUserSizeTimeDateStatistics
1%20130.02822020/02/03 06:01:130B / 12B / 1B
2clock130.03692020/02/12 00:03:310B / 12B / 1B

Groovy _

RankUserSizeTimeDateStatistics
1clock372.13792020/02/12 00:52:150B / 23B / 12B
2Hendrik432.04912020/02/03 06:13:520B / 25B / 18B

Scala _

RankUserSizeTimeDateStatistics
1Hendrik414.79942020/02/02 07:50:510B / 25B / 16B
2rotary-o419.87752020/02/11 22:16:210B / 20B / 20B
3clock414.20532020/02/12 00:00:360B / 25B / 16B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs310000
2Hexagonyhako74285
3GolfScript%2083750
4Befunge%20103000
5BurlesqueHendrik112727
6z80McBusLuck112727
7Brainfuck%20132307
8Vim%20132307
9sedHendrik142142
10Perlmitchs191578
11ZshHendrik201500
12BashMcBusLuck201500
13DOSMcBusLuck201500
14Rubymitchs231304
15Ruby2rotary-o241250
16wakeclock251200
17AWKclock281071
18xgawkolf281071
19jqclock34882
20Grass%2035857
21Bash (builtins)tails36833
22Groovyclock37810
23LuaHendrik38789
24Cnu39769
25Python3mypetlion40750
26Haskellhenkma40750
27Pythonxnor (Lynn)40750
28ScalaHendrik41731
29JavaScriptHendrik41731
30Rolf47638
31Whitespace%2050600
32FerNANDo%2073410
33Lazy-Ktails143209

return to the top page