Jump Numbers

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 input line is a sequence of 10 digits. Starting at the first digit, jump to the indexed digit (base 0) specified by that digit. Output the index of the first digit that is reached twice.

eg. 5082578392 -> jump to 5, jump to 7, jump to 3, jump to 2, jump to 8, jump to 9, jump to 2 and since visited already, output 2.

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

2340734211
0563350507
9455301453
3911096124
8508066573
8843678967
2067814424
9935833646
4561544752
0645278209
2122395942
3149264523
6680434730
4164423386
8532981425
3306263280
4753825959
3066412505
1057700928
9047119946
3192236321
3713942867
1677025943
1314290243
3771428177
8127464120
7788906710
3932348627
3417400395
4804668824
6197387040
8894625138
9276549966
6048115436
2099669583
1643433318
9837483034
7177593899
5413595037
7125647158
2813509675
0542347924
2375668101
1130662774
9837727022
6790691569
1755381356
2027549984
8898442347
5608222738
0345965151
9172037718
6898059343
1250343398
9072739878
4564214544
7172975796
0482951617
5055865071
0784083529
7291807356
0737865133
2597625320
2542931468
9241124164
2129723156
4314353184
4144390763
8377803456
0990450985
8221917767
2551816363
2952441307
8090550687
3588343822
9734397064
9378826562
0059961780
1317816465
8093708990
7719292357
8925351907
6290400119
8177331148
9299787302
8882458142
8015861420
3051833026
2609102527
4061081301
6210872741
2888019247
3615533319
2991095013
7501561818
8893890555
4954929780
6900075098
1523130630
8955989613
7400288820
3066497236
1347164412
7986165102
4232683819
0725149286
4360241047
4610199113
2531106347
7224815302
6234545232
4715390481
7767013720
3618691967
5401391619
1148596644
0803976283
7181627440
9753812237
3441664725
2977102322
1123432647
5391026649
8028809818
9801512173
4724089678
4593319343
4445863759
9490407889
0203439774
2963902763
5208896883
3145213114
7601707514
7015482244
6084004118
6161681918
1173539913
8076867606
5632764095
7315253597
1507963939
1585257458
8905659132
3272405631
2469414627
7890815503
6260688602
9114642005
1395543632
4059408536
3859767444
9545232052
5127885195
5774237988
6828396061
7790016818
0558917039
5327578338
2558787640
6979703391
1666635242
3242650710
4062255295
4432668813
2421745532
0529700340
8239889159
6257708458
0096481456
6441501228
4393580517
1585973649
6569318317
8626361506
7638416818
6582296904
0733852122
6857291852
5913137933
0146602998
8469189002
7748805014
7378243801
7287403213
3781627686
4274047866
4199558647
6388104619
7704654469
3554827950
3020913939
0066971429
1494417499
3401674055
2517939851
0275980768
3893650401
2197763251
1987807427
7737135713
3483992982
5725640155
8523447254
0611770488
8769295817
3326572594
2043186078
3536708204
9818174460
4553672373
2412379594
9945449614
4147470099
8557156943
7852041992
8613800475
7969634639
7027666169
6007113290
4118681657
0469584362
4888978984
9272458418
4068813123
7056563288
9271787359
9018842997
3774796078
2553812510
4052478781
3331425337
1767734896
2788331400
0916482386
6913974840
2071865481
0023625039
0193035495
9399801077
2857556866
2355010414
0142260256
0425725274
6773358496
9782703259
5430571987
5866733196
8628636976
8268924776
4861110154
6138182541
1111821875
9642290065
3443078870
9835526428
9249597061
8188866811
3316603879
2578619580
9815180468
6831450734
6837824027
6190252548
0929342630
0224404469
3018149288
3524476434
0762749561
0785407378
4075749796
3002864916
5357756704
9365990042
5159807668
6710304071
8165704528
5348138597
7002811618
5932434027
6247223399
2919481465
8733359147
8721155295
8862658386
2037989146
2181156088
2841600177
7638583523
6483279510
9840335209
7736967062
1075180189
0506881241
2143680236
9988980985
3431817770
4554096492
7772917269
7149888344
1242143370
2505756017
3517330562
1204153514
7346720823
1716051698
3774895632
2186001400
2233031336
3653196977
6449008460
4668514344
8237855551
3172477320
5662269779
4352941715
5385729447
4003925041
5876696420
6927427159
7530442136
8139975297
6513158387
5454405721
7415155377
6417324988
6826145849
2897913515
9451002711
5584581447
9788585472
8873813151
1872369511
9913525752
5809377453
5992610649
8926296476
6662638896
9407599974
2926465364
0379793662
3168938412
0763363080
7415557195
6234102360
7024326351
6385580124
5745574123
3938262613
8468924792
0012596686
7511769028
5309511663
3719338133
0584533403
3441670173
8905303184
7879704531
7653092025
2749415215
0156546436
2475613653
7392104856
4138161975
2865389832
7877772255
0896201949
0490196393
0542954504
4841438933
7943229768
0831453776
5580510758
0606600196
5792355269
9126711470
1118747753
4270185569
6806893484
9639435148
8763474158
5577431598
1381488757
2418181711
5299839641
2926759586
8657514865
1337283820
9234422416
9585396137
9099996448
1038763132
8070654843
2145192454
6792482076
5580882923
5700596868
3858600458
3307773362
6211997974
2449269947
8744016228
6214117496
3070589140
7498498608
2468893981
9407479381
1571113292
2031484915
5923124146
9488666577
6005880835
3022622408
7282382557
2824959742
1578381523
3248041720
6535348831
3597614094
6621394345
3244661149
0321082728
9177392223
0448700510
9350424105
7715514706
3990859439
7752866731
5116623825
6344603418
3081701969
5639128246
2017242058
2265743996
1423000534
1105628083
7037630816
8828488872
3770712095
6315800567
9236538107
4935903205
1986056794
7319313043
2001069557
6741693750
6115017328
6286209754
5012798033
8654708409
8637049885
0511450980
3799007381
2565597313
0928324301
0860617470
6606258665
8674935167
5426139694
2261749558
3865331202
5589513359
5271350665
4967367737
2756864765
0606211527
3454758058
4597686026
1300589052
5255381083
7317146293
4126604499
6843310348
7519871290
2702740993
4619799849
3281589278
8158788259
1140304229
8389699868
4810531228
0724828775
4797942528
9957429350
8294811414
0101478300
0604911595
2527627498
3847779427
4525021557
9645249341
9342722261
2722163773
0191873853
8590701987
0993523235
1260184349
8373368141
5399312656
3149169899
5758872609
3272072670
5877678716
7014578116
8556204294
3208370711
8453130263
9151192055
3676359307
6099730148
0156516973
5925827806
4718682537
9067510111
8956278315
6218329796
9159443496
2569841458
0838069733
2215163628
4335315198
1411517787
4516393181
1527474859
1874281099
9674382614
7338751368
7929667645
7218247845
5761174966
6741203886
0526652553
8290392178
2808808052
1807595046
5933738383
7219424385
6193202153
4261225614
1412587033
4218930916
1684945972
6813319783
3272810728
2555356720
3731660847
3218298667
3779912608
4247968651
1224493724
6015669314
4486217386
0204514349
7545241913
6541773613
2085330694
1691699238
9824057968
8711776828
4496295348
7133337358
6000634738
2004459520
9458064884
9233234898
4895560898
4215915109
9699807720
0054505924
6590070730
8289989965
9368736708
6595337881
9931272546
1537429027
1375323266
1005590469
0023702110
3661051779
4998514814
2543601483
0215254940
8266511475
6406871259
4794918350
7531699875
9662651474
3144503163
2787800898
8350070774
0460661855
6714228946
5249506347
0532381702
8233112078
9031879746
9738503804
1081729174
7566892236
9423218481
7303781136
7890940705
7144467596
4426644399
7187814247
0042368580
0627125334
9780762753
2501540920
5849819066
5089722457
3105755027
2502912826
6109716032
1545638912
5889300606
0318010175
8469560465
2369073157
1007274645
2716302937
9505467273
8950384968
2490241050
5377760526
0181631125
6235445929
5667742727
8960706749
3980320132
1123044042
0385766283
8753657645
3040667293
5631891327
6739436874
6869808890
8324723356
4446957552
0955779428
0341825811
0220013903
3326097770
2907610286
0843176545
4049570718
5701912549
1113249852
3232514029
0309138240
5015428070
7229523857
6234880229
6644720783
3421170148
9076437666
1688418712
2692419131
7973969794
5412166470
9392630512
3635929488
1077774708
5443139576
5456091639
7258885248
9243791035
2362275177
6741139542
8708739291
7127635260
3447218213
9650652858
8216055657
8684942366
5605115211
1677102866
6174537102
2829312559
9254619129
1379039607
3418824730
7637735374
3681081290
2657551653
6172150926
7586475989
0283711621
1974728695
8202268937
9285343340
4470588481
8993181510
3134291102
8519044063
8401802444
3714720376
7635337027
3088180152
6676903728
3120620575
2226029328
1975908653
0074427828
7540044157
1943643715
4494414718
4113064754
6608116470
8066436958
0697207030
9526973033
4001944596
9526496261
3507127066
0562406887
6216043610
0041989206
7383648024
2848514477
9196591425
0481023796
5336726568
4443754177
2387380282
7641167293
3583169544
8202315628
1373179311
7124474457
9573446279
0090197524
6533660576
6004965496
0651071134
9921141367
4041309414
3265399239
4923677934
5281192489
7798063782
4806258155
2016914433
7543279329
3000061186
1082765298
2834594635
5585220163
0267266166
2734747551
1573061204
6356892628
2397281487
4465144265
5312081757
2136986002
5743917043
4996381774
6481431063
8424079828
0121221620
6836518286
0741507465
8358351781
1475701699
9696736061
5796123429
9136450845
9056624900
9007645034
6630082212
2860242309
8331080609
0949826467
9178714941
2204623201
8522133620
8762966438
3029689935
9444938464
7774355759
6881783352
4336133135
8189162761
3143906361
0594044039
2439140801
5664928970
6042522386
1136987524
0725538448
5433329149
2603032041
4373097961
3790068037
9613137841
1803427923
4042546923
5177172316
1845047668
8879291877
7761690216
0486165921
7934463742
6364932280
4450840176
3166074170
5289967477
4211623369
5208847041
9058416602
7649210597
3157432904
9795837265
6724298067
4206775731
8655296808
4883169155
5233076381
7985791612
2997263741
8428553245
3309049262
4293253504
3987337091
6925999067
6012654859
2710144356
7834550333
6293728607
9849897235
5649077660
5042398829
5727794366
7808808920
5199293268
1994973620
3409370642
1951348358
5267588590
7262601965
8784714714
9003518245
8563582352
3860984103
3034161365
2850630498
9028113036
7620181218
7969042536
7921427520
3190865598
2820004287
8767973068
0591560613
8765496203
8465154110
2580768154
0814800039
1102059499
1850038588
1576303260
4381915501
7315212145
1524853399
2688580308
8356173231
7170890324
7160805294
1905789531
1107218795
7606176481
1028081230
9501250887
1733648440
2572919174
9649626945
6850047825
9783837720
6914743374
8998339625
3191427012
5863866135
1307607994
3057750994
7224902607
7837390153
5817842963
6728881686
8192757837
5845991464
7296095485
8338538802
7369883698
7603861327
0298814505
0243746071
6940813008
2562243807
3754841654
9050008997
7451246103
0800884013
9645910622
6482992313
8962419421
5786709920
4998759708
6188590207
2541685159
0200880848
1133549007
0785885819
9721830797
9272501061
8518834510
2265839251
4113889698
7520046425
9558465131
0944674790
3753360554
7490295281
2728870732
9942119258
6969459417
2298755755
5222480781
9260421332
8655079645
5270247346
5250796934
4132696627
8322574580
5897660581
0029148432
7106719350
4012952560
9181671211
8015337395
6707609095
2382363990
0613148596
8851411046
7125951917
0749495651
1403737782
5242293646
3931504565
5442530985
8409273175
5919810876
9103608178
8479789497
7380963443
3111673731
9138601229
2690952930
7374573630
5108769938
4124062120
4333463939
7581415122
6255550338
4132627731
2964082009
1199317878
5054551652
3870066147
3034732494
4904523185
6647623896
5530557172
3771738347
3429075574
9442985990
5136198302
4031302497
9233292429
8844210570
8245980388
5101128042
7311366992
9669977834
8963378239
3014341313
2035884013
5979477776
8360995164
6360285044
2709333205
7354483369
3247712675
2623402766
6210728163
4245003312
0644300203
5679201394
3103192724
7953508677

Sample output:

2
0
0
0
6
8
2
3
4
0
2
3
4
4
2
3
5
6
0
9
1
3
7
1
1
2
7
3
3
0
0
8
9
0
9
3
4
9
0
1
0
0
0
1
0
9
5
2
4
0
0
1
0
0
8
4
7
0
5
0
7
0
0
2
4
2
4
4
0
0
7
5
4
8
8
4
2
0
6
0
7
0
0
1
9
4
0
0
0
0
2
0
3
9
1
5
0
0
3
8
0
6
1
0
3
0
0
0
0
0
5
4
7
6
9
1
0
7
7
4
7
1
9
0
1
0
3
5
9
0
2
8
1
0
0
0
1
1
0
0
5
9
5
5
0
4
0
0
1
5
4
4
2
5
8
6
7
0
7
7
9
6
0
5
4
2
0
8
0
0
0
3
5
1
0
6
6
0
5
3
0
0
0
0
2
7
0
5
1
4
5
0
0
4
4
5
0
3
1
8
7
3
0
4
0
8
2
0
0
0
3
2
4
4
5
0
8
6
0
0
1
0
4
4
8
6
9
9
0
5
4
3
7
0
0
0
8
0
0
0
5
5
0
0
6
9
7
3
6
7
1
1
1
9
3
2
9
1
3
5
0
0
0
2
0
0
8
4
0
0
7
0
5
0
0
0
0
5
0
3
3
1
3
5
8
0
8
0
8
0
9
0
0
0
0
8
7
0
7
4
1
0
3
0
7
1
3
0
3
3
6
4
5
3
9
4
4
0
0
9
4
9
8
0
5
8
4
1
0
5
8
8
1
9
3
9
2
6
9
2
0
1
0
5
2
3
0
7
3
9
0
0
3
3
0
0
8
0
0
4
0
6
0
1
2
7
0
0
0
4
7
0
5
0
5
0
1
5
6
4
7
5
1
1
9
2
6
3
4
9
9
0
4
1
6
8
6
0
3
9
2
0
1
0
0
8
4
1
0
2
6
0
2
5
2
5
0
3
0
6
4
0
7
0
5
7
0
7
1
6
0
6
0
6
0
1
0
8
0
0
0
0
0
0
0
7
1
0
0
0
8
0
3
3
0
0
6
6
4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
6
5
3
0
0
0
0
9
8
8
0
1
9
3
3
0
7
9
6
0
4
7
2
6
0
0
0
3
7

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock400.08492012/08/21 07:28:450B / 21B / 13B
2yvl400.04922012/08/21 23:43:320B / 20B / 14B
3mitchs400.01862015/12/29 19:46:420B / 21B / 14B
4leonid450.02702012/08/21 09:12:000B / 23B / 17B
5Histocrat480.07162015/05/19 04:42:200B / 22B / 19B

Ruby2 _

RankUserSizeTimeDateStatistics
1mitchs440.15852016/01/15 07:47:150B / 21B / 22B

Perl _

RankUserSizeTimeDateStatistics
1tails340.02912016/01/15 13:05:520B / 16B / 16B
2teebee370.02402012/08/19 20:52:410B / 15B / 20B
3llhuii370.01722016/01/16 01:56:590B / 16B / 17B
4ninjalj510.02632012/11/26 21:11:140B / 17B / 32B
5BioFALSE820.01822014/01/02 08:50:380B / 33B / 48B

Python _

RankUserSizeTimeDateStatistics
1mitchs650.21522015/04/24 10:01:080B / 40B / 23B
2recursive720.02632012/08/29 01:48:240B / 42B / 22B
3leonid720.02682012/09/05 06:31:210B / 42B / 22B
4llhuii720.03452015/02/14 03:37:090B / 41B / 23B
5hallvabo730.03992012/08/14 22:09:200B / 39B / 26B
6clock730.02962012/08/17 16:36:000B / 43B / 21B
7rolf760.04392013/10/23 06:54:330B / 44B / 23B

Python3 _

RankUserSizeTimeDateStatistics
1mitchs620.36902015/06/21 11:34:350B / 34B / 27B
2llhuii690.18532015/02/14 03:45:320B / 38B / 24B

Io _

RankUserSizeTimeDateStatistics
1pooq870.13082012/10/20 00:11:560B / 60B / 23B

JavaScript _

RankUserSizeTimeDateStatistics
1nn540.03422012/08/17 00:40:390B / 30B / 24B
2clock540.05342012/08/17 02:41:260B / 30B / 24B
3_nderscore540.04502013/09/26 22:50:490B / 30B / 24B
4Shmiddty540.05972013/09/27 00:53:170B / 30B / 24B
5FizzyTea540.04322015/04/25 00:51:150B / 30B / 24B
6madshall570.03282013/08/09 03:10:230B / ?B / ?B
7just-a-test580.04742013/09/27 04:35:100B / 32B / 26B
8aridon900.06032013/09/17 19:51:220B / 51B / 39B
9Skilover871580.04402013/09/30 21:13:290B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1AndoDaan1180.01742014/08/15 18:36:580B / 73B / 33B

Xtal _

RankUserSizeTimeDateStatistics
1teebee830.03902013/09/28 17:23:080B / 47B / 36B
2clock830.03822013/09/28 17:27:180B / 43B / 39B
3pooq970.03482012/10/20 01:55:130B / 47B / 49B

BASIC _

RankUserSizeTimeDateStatistics
1pooq960.03952012/10/19 18:36:120B / 51B / 35B

J _

RankUserSizeTimeDateStatistics
1I., S.440.13552012/08/14 07:18:400B / 16B / 27B

C _

RankUserSizeTimeDateStatistics
1llhuii670.01082015/02/14 03:16:230B / 35B / 32B
2nu680.01152012/09/02 00:13:350B / 34B / 34B
3inaniwa720.01082012/08/14 11:28:040B / 39B / 33B
4david_werecat720.01082012/08/14 21:35:140B / 37B / 34B

Haskell _

RankUserSizeTimeDateStatistics
1cojna720.03642014/03/21 04:48:400B / 43B / 26B
2henkma720.03302014/03/21 07:03:470B / 43B / 25B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1080.59122012/10/19 22:28:070B / 67B / 37B

AWK _

RankUserSizeTimeDateStatistics
1llhuii380.01492014/03/20 20:49:470B / 19B / 19B
2teebee400.02042014/08/03 05:10:290B / 14B / 26B
3nn430.02942012/11/16 18:00:350B / 14B / 29B
4ninjalj470.01812012/11/26 23:15:510B / 19B / 28B

sed _

RankUserSizeTimeDateStatistics
1tails600.14382016/01/15 14:59:080B / 20B / 34B
2mitchs710.14952016/01/15 14:31:370B / 21B / 43B

jq _

RankUserSizeTimeDateStatistics
1clock870.22502015/02/13 02:32:190B / 33B / 52B

Bash _

RankUserSizeTimeDateStatistics
1llhuii440.00842015/02/14 03:23:100B / 22B / 21B

Zsh _

RankUserSizeTimeDateStatistics
1llhuii440.01942015/02/14 03:23:200B / 22B / 21B

Fish _

RankUserSizeTimeDateStatistics
1llhuii440.05752015/02/14 03:23:270B / 22B / 21B

bc _

RankUserSizeTimeDateStatistics
1teebee660.09292012/08/20 06:34:410B / 31B / 34B

dc _

RankUserSizeTimeDateStatistics
1tails440.15162012/08/20 16:06:260B / 31B / 13B

xgawk _

RankUserSizeTimeDateStatistics
1llhuii380.01602014/03/15 23:12:200B / 19B / 19B
2teebee410.02772013/03/24 17:04:150B / 15B / 26B
3ninjalj470.02162012/11/26 23:16:010B / 19B / 28B

R _

RankUserSizeTimeDateStatistics
1pooq1070.40922012/10/26 20:38:350B / 67B / 38B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs1410.04672014/03/28 18:27:460B / 0B / 141B
2g33k30400.00022013/01/29 14:23:13999B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1tails341.26882012/08/20 13:05:150B / 7B / 27B

z80 _

RankUserSizeTimeDateStatistics
1fsystem331.02112012/11/16 01:55:3417B / ?B / ?B

Vim _

RankUserSizeTimeDateStatistics
1clock420.77392012/08/21 13:32:044B / 14B / 21B

Groovy _

RankUserSizeTimeDateStatistics
1nn681.48652012/08/17 00:47:490B / 43B / 23B
2clock681.42322012/08/17 13:06:430B / 45B / 19B

Language Ranking_

RankLangUserSizeScore
1z80fsystem3310000
2GolfScripttails349705
3Perltails349705
4xgawkllhuii388684
5AWKllhuii388684
6Rubyclock408250
7Vimclock427857
8JI., S.447500
9dctails447500
10Bashllhuii447500
11Zshllhuii447500
12Fishllhuii447500
13Ruby2mitchs447500
14JavaScriptnn546111
15sedtails605500
16Python3mitchs625322
17Pythonmitchs655076
18bcteebee665000
19Cllhuii674925
20Groovynn684852
21Haskellcojna724583
22Xtalteebee833975
23Iopooq873793
24jqclock873793
25BASICpooq963437
26Rpooq1073084
27Maximapooq1083055
28LuaAndoDaan1182796
29Brainfuckmitchs1412340

return top