Space Index

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

Each line has a list of comma separated indecies followed by a space and then followed by a string. The indecies represent the positions in the string to insert spaces. Output each string with all spaces inserted.

Options

exec is denied

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

Sample input:_

4,6,7,13 Thisisasamplestring.
7,9,12 Nothingtoseehere...
0,7,13,18 Leadingspacescounttoo!
 
3,8,12,14 Theabovelineis"blank"
 Thisisallonewordanyways

Sample output:

This is a sample string.
Nothing to see here...
 Leading spaces count too!

The above line is "blank"
Thisisallonewordanyways

Sample input:_

7,10,14 GeneralandUserInterface
7,14,19,22,31 Severalgeneralfixesandstabilityimprovements
7,16,22,27 Websitethumbnailmemoryusageimprovements
7,10,16,31,33,39,46,54 Addressbarinlineauto-completionnolongerprefersshortestdomain
9,11,16,20,25,30,35,43,46,52 Correctedanerrorthatcouldoccurafterremovingthepluginwrapper
8,10,15,20,28,32,40,43,47,51,55,59,63 Resolvedanissuewherefaviconsweresqueezedtoomuchwhenmanytabswereopen
7,10 DisplayandScripting
8,10,15,19,22,31,36,48,51,62 ResolvedanerrorwithXHRtransferswherecontent-typewasincorrectlydetermined
8,16,18,24,32,36,43,52 Improvedhandlingofobjectliteralswithnumericduplicateproperties
7,15,17,31,36,48,51,61,64,73,77,79,80,84,90,94,95 Changedbehaviorofnested/chainedcommaexpressions:nowexpressingandcompilingthemasalistratherthanatree
7,15,17,20,27,35,37,45,49,56,58,68,69,75,79,83,86 Alignedbehaviorofthe#callerpropertyonfunctioncodeobjectsinECMAScript5strictmodewiththespecification
5,7,12,17,22,32,37,43,45,54,59,61,64,75 Fixedanissuewhereinputtype=monthwouldreturnanincorrectvalueinitsvalueAsDateproperty
8,10,15,19,35,39,44,49,51,57,63 ResolvedanissuewithJSON.stringify()thatcouldoccuroncachednumberconversion
5,6,13,17,27,34,44,49 FixedaproblemwithredefiningspecialpropertiesusingObject.defineProperty()
7,10 NetworkandSite-Specific
5,7,12,17,24,29,33,35,44,49,52,55,59,64,69,71 Fixedanissuewhereloadingwouldstopat"Document100%"butthepagewouldstillbeloading
11,20,28,32,36,43,46 tuenti.com:Correctedbehaviorwhenlongcontentwasdisplayed
20,25,27,32,36,42,53 https://twitter.com:Fixedanissuewithsecuretransactionerrors
5,7,12,16,22,26,30,34,41,45,54,63,68,74,80 FixedanissuewithGoogleMapsLabsthatoccuredwhencompilingtop-levelloopsinsidestrictevals
9,10,17,21,26,31,35 CorrectedaproblemthatcouldoccurwithDISQUS
5,6,11,20,22,30,35,39 FixedacrashoccurringonLenovo's"Shopnow"page
9,15,19,26,44,47,48,56,58 Correctedissueswhencallingwindow.console.logviaavariableatwatch4you
8,10,15,19,25 ResolvedanissuewithYahoo!chat
5,10 Mail,News,Chat
5,6,9,13,17,23,29,31,35,39,42,50,56,58,64,71 FixedabugwithbothinlineimagesinHTMLmailandinsertedimagesine-mailcomposewindows
8,10,15,20,25,32,42,45,49,54,59,71,77 Resolvedanissuewhereundercertainconditionsthemailpanelwouldcontinuouslyscrollup
5,6,11,20,24,31,35,44,46 Fixedacrashoccurringwhenloadingmaildatabasesonstartup
 Security
8,10,15,20,27,30,40,45,50,59,63,73,75,83,85,91,101,104,107 Re-fixedanissuewherecertainURLconstructscouldallowarbitrarycodeexecution,asreportedbyAndreyStroganov;seeouradvisory
5,7,12,17,24,34,36,40,45,56,58,66,71,76,86,89,97,100,103 FixedanissuewherecertaincharactersinHTMLcouldincorrectlybeignored,whichcouldfacilitateXSSattacks;seeouradvisory
5,12,17,22,27,34,39,41,45,47,52,57,61,70,79,81,89,91,96,104,107,110 FixedanotherissuewheresmallwindowscouldbeusedtotrickusersintoexecutingdownloadsasreportedbyJordiChancel;seeouradvisory
5,7,12,17,19,28,32,39,44,46,57,65,72,81,90,94,98,109,112,115 Fixedanissuewhereanelement'sHTMLcontentcouldbeincorrectlyreturnedwithoutescaping,bypassingsomeHTMLsanitizers;seeouradvisory
5,6,9,17,23,30,34,36,45,47,48,53 Fixedalowseverityissue,detailswillbedisclosedatalaterdate

Sample output:

General and User Interface
Several general fixes and stability improvements
Website thumbnail memory usage improvements
Address bar inline auto-completion no longer prefers shortest domain
Corrected an error that could occur after removing the plugin wrapper
Resolved an issue where favicons were squeezed too much when many tabs were open
Display and Scripting
Resolved an error with XHR transfers where content-type was incorrectly determined
Improved handling of object literals with numeric duplicate properties
Changed behavior of nested/chained comma expressions: now expressing and compiling them as a list rather than a tree
Aligned behavior of the #caller property on function code objects in ECMAScript 5 strict mode with the specification
Fixed an issue where input type=month would return an incorrect value in its valueAsDate property
Resolved an issue with JSON.stringify() that could occur on cached number conversion
Fixed a problem with redefining special properties using Object.defineProperty()
Network and Site-Specific
Fixed an issue where loading would stop at "Document 100%" but the page would still be loading
tuenti.com: Corrected behavior when long content was displayed
https://twitter.com: Fixed an issue with secure transaction errors
Fixed an issue with Google Maps Labs that occured when compiling top-level loops inside strict evals
Corrected a problem that could occur with DISQUS
Fixed a crash occurring on Lenovo's "Shop now" page
Corrected issues when calling window.console.log via a variable at watch4you
Resolved an issue with Yahoo! chat
Mail, News, Chat
Fixed a bug with both inline images in HTML mail and inserted images in e-mail compose windows
Resolved an issue where under certain conditions the mail panel would continuously scroll up
Fixed a crash occurring when loading mail databases on startup
Security
Re-fixed an issue where certain URL constructs could allow arbitrary code execution, as reported by Andrey Stroganov; see our advisory
Fixed an issue where certain characters in HTML could incorrectly be ignored, which could facilitate XSS attacks; see our advisory
Fixed another issue where small windows could be used to trick users into executing downloads as reported by Jordi Chancel; see our advisory
Fixed an issue where an element's HTML content could be incorrectly returned without escaping, bypassing some HTML sanitizers; see our advisory
Fixed a low severity issue, details will be disclosed at a later date

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock590.04792012/08/29 13:54:300B / 22B / 32B
2leonid590.02422012/08/30 05:26:450B / 22B / 32B
3yvl600.03002012/08/21 23:15:320B / 24B / 32B
4bk1e830.02532012/08/20 16:19:260B / 47B / 31B
5Matz760.03292016/03/09 22:15:450B / ?B / ?B
6_910.03942016/03/09 19:15:360B / ?B / ?B
7test1730.03432016/03/09 19:12:070B / ?B / ?B
8yamaken2250.03182016/03/09 19:10:000B / ?B / ?B

Ruby2 _

RankUserSizeTimeDateStatistics
1_590.16872016/03/09 19:27:150B / ?B / ?B
2Matz820.16602016/03/09 19:14:510B / ?B / ?B
3nyamadori1610.15542016/03/09 19:06:200B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tails430.04342012/08/28 23:04:500B / 14B / 24B
2teebee460.03002012/08/28 22:12:370B / 21B / 23B
3Hem600.03262012/08/27 08:33:250B / 25B / 32B
4_1330.03592016/03/09 18:55:340B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1leonid870.04022012/08/30 05:12:100B / 45B / 36B
2hallvabo930.03812012/08/20 09:22:480B / 46B / 34B
3twobit950.03722012/08/21 01:33:130B / 54B / 27B

Io _

RankUserSizeTimeDateStatistics
1pooq1490.20642012/11/19 19:44:410B / 98B / 37B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1040.04772012/08/21 23:40:440B / 48B / 51B

J _

RankUserSizeTimeDateStatistics
1I., S.730.05262012/08/17 21:31:570B / 23B / 49B

K _

RankUserSizeTimeDateStatistics
1twobit460.01672012/08/20 06:23:270B / 11B / 31B
2teebee490.01842012/08/20 16:03:360B / 11B / 33B

Jelly _

RankUserSizeTimeDateStatistics
1Erik the Outgolfer140.39062021/04/15 21:53:0511B / 2B / 1B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1010.03602012/08/22 19:56:110B / 51B / 47B
2notogawa1010.05222012/08/28 23:01:260B / 51B / 48B

sed _

RankUserSizeTimeDateStatistics
1tails1150.24362012/08/20 18:55:100B / 43B / 55B

GolfScript _

RankUserSizeTimeDateStatistics
1tails330.16832012/08/25 15:59:270B / 7B / 23B
2clock350.12392012/08/24 14:31:150B / 4B / 29B

Nibbles _

RankUserSizeTimeDateStatistics
1tails (v0.24 `% ~)120.04012022/02/25 22:58:505B / 4B / 3B

Vim _

RankUserSizeTimeDateStatistics
1clock410.17802012/08/18 17:32:172B / 17B / 17B

Language Ranking_

RankLangUserSizeScore
1Nibblestails (v0.24 `% ~)1210000
2JellyErik the Outgolfer148571
3GolfScripttails333636
4Vimclock412926
5Perltails432790
6Ktwobit462608
7Rubyclock592033
8Ruby2592033
9JI., S.731643
10Pythonleonid871379
11Haskellhenkma1011188
12JavaScriptnn1041153
13sedtails1151043
14Iopooq149805

return to the top page