Connect Digits

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 as few digits as possible so that adjacent digits differ by at most 1.

-- mitchs

Options

exec is denied

rejudge feature is enabled

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

Sample input:_

4715929659736091462688632792237073688392355241991223924057586085464350339585259890678148710516886949

Sample output:

456765432123456789876543234567898765678987654345654321012345678987654321234565432345678876543234567898765432234567654321012345676543456788765434567898765432345543234321234567899876543212234567898765432343210123456765678765432101234567876545654345432101233456789876567876543234567898987654321012345678765432123456787654321012345432123456788767898765456789

Sample input:_

7981117659676431668601133423283591767884157589636586182855819440693050188465155997172332566228562538

Sample output:

789876543211123456765678987676543212345667876543210112334323234567876543456789876543212345676788765432123456765678987654345656787654321234567876543234567876556787654321234567898765443210123456789876543210123454321012345678876545654321234556789987654321234567654323323456654322345678765654323454345678

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1mitchs400.01492016/06/02 10:40:270B / 23B / 16B
2xsot400.02592016/06/02 13:09:150B / 23B / 16B
3Histocrat440.01672016/06/04 00:16:350B / 28B / 15B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs420.15062016/06/03 23:38:390B / 20B / 21B

Perl _

RankUserSizeTimeDateStatistics
1teebee430.02312016/06/01 15:29:330B / 14B / 29B
2llhuii430.02462016/06/11 23:48:080B / 17B / 26B
3tails440.04622016/06/02 13:54:110B / 14B / 30B
4Hem640.09772016/06/03 15:27:390B / 30B / 31B
5kimiyuki690.03742016/06/01 23:07:510B / 27B / 40B
6rsFalse1080.02272016/10/09 06:39:390B / 45B / 57B

Python _

RankUserSizeTimeDateStatistics
1mitchs730.08642016/06/07 17:59:300B / 41B / 25B
2xsot790.06782016/06/07 19:00:360B / 46B / 26B
3xnor920.06532016/06/02 08:28:070B / ?B / ?B
4recursive960.05892016/06/01 04:51:550B / 57B / 30B
5urupica1040.07912016/06/01 07:26:200B / ?B / ?B
6rolf1090.07152016/06/04 04:30:220B / 58B / 43B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs760.12292016/06/04 03:30:430B / 40B / 35B
2xsot790.22442016/06/07 19:25:240B / 39B / 39B

Scheme _

RankUserSizeTimeDateStatistics
1kaki1020.35552016/06/14 02:12:570B / 51B / 47B
2kaki880.03892016/06/18 00:53:430B / 44B / 40B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee640.03822016/06/01 15:49:420B / 35B / 29B
2FizzyTea760.04082016/06/01 08:57:170B / 39B / 37B

PARI/GP _

RankUserSizeTimeDateStatistics
1mitchs600.03632016/06/07 18:05:570B / 33B / 26B
2teebee610.02082016/06/05 07:55:560B / 34B / 26B

C _

RankUserSizeTimeDateStatistics
1mitchs550.02152016/06/04 11:05:450B / 31B / 24B
2tails550.02152016/06/08 14:26:070B / 29B / 26B
3lpha590.02422016/06/04 01:07:500B / 32B / 27B
4%20600.02602016/06/10 19:49:440B / 32B / 28B
5chocobi710.02142016/06/04 01:14:170B / 38B / 33B
6kimiyuki970.02742016/06/01 17:51:220B / 53B / 44B
7mitchs (tails)540.02142016/06/15 05:19:590B / 31B / 23B

Haskell _

RankUserSizeTimeDateStatistics
1henkma620.02292016/06/02 00:00:210B / 35B / 22B
2nagibator2005650.02652016/06/02 00:39:420B / ?B / ?B
3yuki910.02242016/06/01 23:24:140B / 50B / 36B

ObjC _

RankUserSizeTimeDateStatistics
1mitchs550.02132016/06/04 11:15:220B / 31B / 24B
2%20690.02162016/06/02 02:35:270B / 36B / 32B

Java _

RankUserSizeTimeDateStatistics
1teebee1260.15622016/06/02 05:22:310B / 73B / 49B

AWK _

RankUserSizeTimeDateStatistics
1llhuii530.02422016/06/11 09:28:280B / 23B / 30B
2mitchs530.02352016/06/11 10:11:090B / 26B / 27B
3teebeex570.02422016/06/02 07:50:500B / 25B / 31B
4teebee570.02192016/06/02 16:26:080B / 25B / 31B
5mitchs (llhuii)520.03242016/06/15 04:16:550B / 23B / 29B

sed _

RankUserSizeTimeDateStatistics
1mitchs690.05282016/06/03 12:30:240B / 30B / 36B
2tails700.15742016/06/03 14:11:570B / 32B / 37B
3%20770.03382016/06/01 22:51:130B / 32B / 36B
4kimiyuki1080.04552016/06/01 18:14:470B / 39B / 62B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii520.84332016/06/14 21:41:100B / 22B / 26B
2tails540.19682016/06/13 15:18:560B / 22B / 28B

dc _

RankUserSizeTimeDateStatistics
1tails580.02712016/06/13 19:49:160B / 41B / 17B

xgawk _

RankUserSizeTimeDateStatistics
1mitchs530.03432016/06/15 00:12:300B / 26B / 27B
2llhuii540.03192016/06/15 00:06:350B / 23B / 31B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs560.02762016/06/02 01:50:090B / 0B / 56B
2angel700.02842016/06/03 01:10:220B / ?B / ?B
3kimiyuki740.02362016/06/05 03:35:370B / 0B / 74B

Whitespace _

RankUserSizeTimeDateStatistics
1kaz_u990.02512016/06/08 21:14:210B / 0B / 0B
2%201160.02152016/06/14 01:29:580B / 0B / 0B

GolfScript _

RankUserSizeTimeDateStatistics
1tails220.26382016/06/02 22:16:030B / 3B / 19B

gs2 _

RankUserSizeTimeDateStatistics
1mitchs130.17722016/06/04 07:37:294B / 6B / 2B

goruby _

RankUserSizeTimeDateStatistics
1mitchs340.06392016/06/06 11:53:200B / 12B / 21B

Groovy _

RankUserSizeTimeDateStatistics
1teebee631.95322016/06/05 11:36:120B / 34B / 29B

Logo _

RankUserSizeTimeDateStatistics
1teebee670.05572016/06/05 09:21:320B / 42B / 20B

Language Ranking_

RankLangUserSizeScore
1gs2mitchs1310000
2GolfScripttails225909
3gorubymitchs343823
4Rubymitchs403250
5Ruby2mitchs423095
6Perlteebee433023
7Bash (builtins)llhuii522500
8AWKmitchs (llhuii)522500
9xgawkmitchs532452
10Cmitchs (tails)542407
11ObjCmitchs552363
12Brainfuckmitchs562321
13dctails582241
14PARI/GPmitchs602166
15Haskellhenkma622096
16Groovyteebee632063
17JavaScriptteebee642031
18Logoteebee671940
19sedmitchs691884
20Pythonmitchs731780
21Python3mitchs761710
22Schemekaki881477
23Whitespacekaz_u991313
24Javateebee1261031

return top