QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#600428#5309. Guess Cycle Lengthucup-team4944#AC ✓26ms4640kbC++141.4kb2024-09-29 16:28:042024-09-29 16:28:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 6ms
memory: 4000kb

input:

7
1
4
3
5
1
9
3
1
7
1
7
2
5
3
8
3
7
9
4
1
3
7
8
3
2
10
8
1
3
8
5
3
6
4
9
8
9
3
3
8
3
10
3
8
6
9
9
5
9
1
2
3
2
4
9
9
9
5
2
6
1
7
1
6
2
3
1
7
6
8
3
6
8
10
4
6
1
7
6
7
2
1
3
7
1
10
2
1
7
3
10
9
6
5
10
10
4
4
10
3
2
3
7
8
3
8
5
2
4
9
2
6
10
10
10
5
5
5
4
5
10
10
1
3
9
7
3
2
1
8
5
7
9
2
6
3
10
10
2
7
10
...

output:

walk 925422472
walk 403020272
walk 673505809
walk 336715197
walk 761777126
walk 494624388
walk 287248904
walk 299095702
walk 376320614
walk 132067068
walk 487586482
walk 935822508
walk 863679235
walk 407205829
walk 449230384
walk 789167775
walk 277787255
walk 559033932
walk 700129796
walk 94797185
w...

result:

ok OK, guesses=6000

Test #2:

score: 0
Accepted
time: 14ms
memory: 4000kb

input:

18
16
3
12
8
6
19
9
20
7
5
5
9
1
10
4
8
14
12
20
18
8
8
10
15
11
11
19
19
2
3
4
9
8
19
12
13
9
3
10
16
11
11
7
16
4
16
10
14
9
5
12
9
18
16
19
11
1
8
17
2
13
15
4
4
5
15
19
6
11
4
1
2
11
1
7
18
15
17
16
6
15
17
20
7
11
19
1
10
10
13
13
7
11
10
14
20
14
14
5
9
12
11
16
10
11
19
10
14
6
3
11
7
17
15
1...

output:

walk 876853054
walk 698709810
walk 794141425
walk 745803739
walk 664457811
walk 951655782
walk 458772857
walk 605012817
walk 976006961
walk 595704669
walk 139061178
walk 917386880
walk 127955332
walk 630172332
walk 693075839
walk 668930906
walk 679113827
walk 251967603
walk 431255606
walk 196691708
...

result:

ok OK, guesses=6000

Test #3:

score: 0
Accepted
time: 24ms
memory: 4556kb

input:

9195
8479
1886
8847
5932
2860
1460
7857
9343
7404
4348
4086
4453
4273
4906
9819
6361
2238
2841
1342
2602
1759
7263
4739
6623
987
6176
8994
2154
375
923
7921
6620
1606
1745
3119
9019
54
2138
5604
6541
148
3489
8881
6310
3441
2467
625
3683
8709
1419
4809
8388
5379
9526
5401
3534
4006
4974
600
6989
883...

output:

walk 659919194
walk 676019284
walk 193773407
walk 35036961
walk 359247085
walk 72416928
walk 529938600
walk 495316397
walk 375961486
walk 527838061
walk 669236944
walk 171679738
walk 981690367
walk 38269820
walk 324870633
walk 427954913
walk 491286542
walk 939795877
walk 680360603
walk 975708501
wal...

result:

ok OK, guesses=6002

Test #4:

score: 0
Accepted
time: 5ms
memory: 4448kb

input:

118527759
187698579
86404298
824806113
924940103
72120627
900864088
157006462
695178118
711974816
76838786
912194111
28435958
245454071
177773138
705076003
454503221
27977887
482021368
557374245
733168154
412551498
849817590
974057388
689486868
351296105
848098771
618711075
623132785
12159429
388982...

output:

walk 118527758
walk 69170820
walk 898705719
walk 738401815
walk 100133990
walk 147180524
walk 828743461
walk 256142374
walk 538171656
walk 16796698
walk 364863970
walk 835355325
walk 116241847
walk 217018113
walk 932319067
walk 527302865
walk 749427218
walk 573474666
walk 454043481
walk 75352877
wal...

result:

ok OK, guesses=6099

Test #5:

score: 0
Accepted
time: 0ms
memory: 4636kb

input:

132906571
705166522
480472923
694731461
98683187
182660794
670185417
637269507
564118972
908885599
567133165
366390054
671948667
398492288
284469814
670353300
141026907
451850944
483614409
437272893
12998438
65128685
923692542
225160946
39745362
61367815
764705014
369374484
760189730
872139538
32139...

output:

walk 130986760
walk 572259951
walk 775306401
walk 214258538
walk 403951726
walk 83977607
walk 487524623
walk 967084090
walk 926849465
walk 344766627
walk 658247566
walk 799256889
walk 305558613
walk 726543621
walk 885977526
walk 385883486
walk 470673607
walk 310824037
walk 31763465
walk 953658484
wa...

result:

ok OK, guesses=6085

Test #6:

score: 0
Accepted
time: 12ms
memory: 4620kb

input:

817147705
407570001
236575358
747738842
188529077
585325823
225476262
430439168
169649732
904993771
973897930
292113856
629616620
141887362
150103765
504373464
547891581
664766711
663857710
462934496
645547993
823216886
370275834
196420103
850619954
46484905
141972903
134949775
934446426
861955802
3...

output:

walk 676098552
walk 769311448
walk 185444341
walk 453941692
walk 681641555
walk 319774298
walk 285252607
walk 944870378
walk 302421732
walk 629329407
walk 356862967
walk 526001638
walk 518840332
walk 735827846
walk 784134539
walk 576748987
walk 245906221
walk 323399690
walk 496655887
walk 642498818
...

result:

ok OK, guesses=6209

Test #7:

score: 0
Accepted
time: 0ms
memory: 4636kb

input:

711353824
165109278
103457658
404709344
734601937
814508546
311516463
422895629
425162738
602753988
311741335
115985930
82935484
191844982
519164828
308645793
432614846
251449389
605069285
877505356
790438221
409117835
487328742
210200976
662034475
454055827
983903088
971066363
102240693
976347178
1...

output:

walk 711353823
walk 811301869
walk 760122492
walk 965674442
walk 486149310
walk 79906609
walk 258962554
walk 195265890
walk 993882595
walk 340134403
walk 470970528
walk 196392277
walk 36146998
walk 192803926
walk 639453450
walk 938411523
walk 182689179
walk 148055441
walk 197391975
walk 272436071
wa...

result:

ok OK, guesses=6037

Test #8:

score: 0
Accepted
time: 10ms
memory: 4632kb

input:

911615802
74321158
488579326
865378911
864747014
173073484
617209432
350872233
600535586
501922711
73281029
402766028
318084856
594767173
223501396
172164919
429586086
117206580
413772518
723262255
215995709
670421575
321153954
67186032
386029130
877086988
987955008
699291647
322897122
538294691
519...

output:

walk 21798782
walk 475765070
walk 503169334
walk 256107077
walk 464397673
walk 891564420
walk 924164376
walk 514519110
walk 699554484
walk 654058367
walk 757211143
walk 824250830
walk 138800415
walk 571744228
walk 330314
walk 670438220
walk 853417676
walk 472078276
walk 353015209
walk 926025061
walk...

result:

ok OK, guesses=6013

Test #9:

score: 0
Accepted
time: 7ms
memory: 4012kb

input:

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

output:

walk 154602027
walk 47833580
walk 479626068
walk 51521886
walk 139064137
walk 127340279
walk 875305687
walk 964951212
walk 828392397
walk 909084805
walk 452179297
walk 784205500
walk 495893314
walk 748941230
walk 664741301
walk 266224383
walk 664843080
walk 521499346
walk 638671301
walk 387541249
wa...

result:

ok OK, guesses=6000

Test #10:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

5
3
8
7
5
7
9
1
7
9
7
3
8
4
10
2
8
10
10
10
10
2
2
1
6
8
2
6
5
9
8
9
7
5
5
7
8
5
2
8
2
3
2
10
1
6
10
7
9
4
2
1
9
8
10
7
9
10
8
7
7
1
8
2
5
8
4
2
4
8
7
2
9
8
10
7
4
1
5
2
3
9
5
10
6
1
6
10
1
10
9
1
4
7
2
2
5
1
4
5
3
3
9
1
10
7
4
6
4
10
2
3
10
10
3
9
2
8
1
6
1
9
10
2
7
6
4
1
10
7
1
9
7
4
1
8
3
7
8
6
5...

output:

walk 58758187
walk 941143794
walk 209563635
walk 582055429
walk 473241052
walk 880330528
walk 923081684
walk 676397544
walk 637129242
walk 326141044
walk 707823226
walk 776330246
walk 229760355
walk 272050506
walk 324577152
walk 643465874
walk 637831208
walk 593545628
walk 320860420
walk 994149090
w...

result:

ok OK, guesses=6000

Test #11:

score: 0
Accepted
time: 8ms
memory: 4108kb

input:

63
525
612
429
267
139
631
690
432
393
589
580
264
679
607
571
714
661
709
558
355
389
599
182
715
742
256
447
968
833
341
400
90
639
75
806
429
318
454
81
378
734
781
984
604
902
611
533
941
148
147
898
701
223
924
377
380
764
543
671
462
154
176
89
314
237
458
560
712
794
610
377
805
552
981
851
4...

output:

walk 798705307
walk 563145882
walk 271432185
walk 686562077
walk 818603073
walk 207361921
walk 657416513
walk 762739194
walk 193556143
walk 647988508
walk 949226935
walk 557940042
walk 88004819
walk 923183566
walk 549644532
walk 427624616
walk 942478436
walk 204034246
walk 482828186
walk 885950075
w...

result:

ok OK, guesses=6000

Test #12:

score: 0
Accepted
time: 3ms
memory: 4436kb

input:

5064
1266
9639
8755
8031
8498
8836
1004
5369
1826
6900
4618
2567
3598
120
8168
4709
1526
907
609
3104
7087
7551
7859
4422
8431
8380
7928
2829
7285
5358
4988
6880
2978
4879
7772
36
823
5817
2760
4003
9576
8806
2379
865
7190
8398
4993
9927
6212
7572
5841
8940
7962
9223
1171
8939
241
3610
3262
2322
531...

output:

walk 766905167
walk 267890675
walk 966578837
walk 446835387
walk 284855229
walk 13744440
walk 188712916
walk 799633817
walk 302317777
walk 43525839
walk 132137879
walk 454415008
walk 912495851
walk 476087408
walk 613343690
walk 556732714
walk 543125119
walk 359511504
walk 231690819
walk 742034212
wa...

result:

ok OK, guesses=6002

Test #13:

score: 0
Accepted
time: 17ms
memory: 4624kb

input:

86830
42379
20725
54630
80256
96189
77248
37863
87130
47011
80813
37084
62857
79071
59980
7319
34317
79145
18533
98468
27041
73441
25681
50346
71596
49041
3883
77380
75546
93667
51235
10644
80641
87058
33218
2898
2353
30603
5707
18436
38050
84618
76674
16942
94309
79832
58324
69206
12543
59532
2727
...

output:

walk 354925467
walk 880384953
walk 218849996
walk 291296673
walk 817097435
walk 914936292
walk 232504370
walk 401202083
walk 688683591
walk 6256044
walk 547698612
walk 569080577
walk 854047247
walk 646169688
walk 814542168
walk 690387012
walk 92196918
walk 361858209
walk 866926781
walk 534470451
wal...

result:

ok OK, guesses=6002

Test #14:

score: 0
Accepted
time: 5ms
memory: 4620kb

input:

981567
548612
43916
340282
6528
427400
758407
683086
133783
227530
802879
724664
957463
501933
788721
905794
515547
846311
934179
797799
482612
238448
762561
388944
859500
290840
787862
222868
985602
362571
889759
604635
599128
533009
496617
722984
619999
25845
727887
327799
78789
334246
573863
9788...

output:

walk 558816754
walk 844602542
walk 152806618
walk 284902147
walk 74371721
walk 639203433
walk 403117705
walk 74300854
walk 166414190
walk 771265257
walk 781787613
walk 60288450
walk 722958518
walk 722955703
walk 319782935
walk 147557693
walk 188835496
walk 870604384
walk 771535821
walk 839757983
wal...

result:

ok OK, guesses=6002

Test #15:

score: 0
Accepted
time: 8ms
memory: 4432kb

input:

3676792
442247
854796
7073390
7248689
7677948
1087271
7487734
5361023
1070187
3061055
965242
2664273
4087946
1248256
270478
4307687
4629096
7025052
6722107
1680095
900655
3178681
3332799
9730841
6977423
9483905
7130238
417830
7426537
3542780
6014732
5176957
1539646
373878
9679650
7240431
1811484
585...

output:

walk 824036320
walk 997337727
walk 408477835
walk 303726260
walk 97931594
walk 415594494
walk 487939973
walk 56616424
walk 790246102
walk 939230001
walk 528406857
walk 435218917
walk 212259257
walk 418388964
walk 22985347
walk 756156874
walk 401011859
walk 28221562
walk 517307238
walk 632224791
walk...

result:

ok OK, guesses=6002

Test #16:

score: 0
Accepted
time: 13ms
memory: 4628kb

input:

53847695
68112657
92476968
39531874
67317926
19943864
77924078
22676406
49532993
11346223
72373117
20776655
54781480
52667284
64044710
62027482
49293089
89128470
28612010
83658450
74522052
55373408
30066198
32063724
95947828
64667151
81999923
28850284
9981730
12237760
79393738
82448202
61501909
8983...

output:

walk 477210585
walk 588516923
walk 453882275
walk 794697557
walk 337672518
walk 760432535
walk 709026793
walk 921197170
walk 765640337
walk 38143078
walk 987740975
walk 47338481
walk 359549408
walk 168617870
walk 315478406
walk 514779971
walk 375952263
walk 401080477
walk 855944052
walk 449436588
wa...

result:

ok OK, guesses=6028

Test #17:

score: 0
Accepted
time: 13ms
memory: 4608kb

input:

765555746
974292681
978372772
822064350
411382041
417253276
38753054
726227432
611550522
963178737
836989464
110913161
934994042
792568301
185172149
354604265
95977807
911067203
871691575
476549567
215098034
342294275
544768596
248904051
258163675
400641687
296093967
300773292
11971412
399879580
797...

output:

walk 452490634
walk 466917969
walk 19853674
walk 387779337
walk 695991934
walk 473237126
walk 17752294
walk 713575434
walk 893979912
walk 969011422
walk 879009398
walk 796405401
walk 767820665
walk 649290314
walk 637998144
walk 912274541
walk 626237200
walk 980235573
walk 435282193
walk 436602177
wa...

result:

ok OK, guesses=6015

Test #18:

score: 0
Accepted
time: 3ms
memory: 4492kb

input:

105500111
148879363
851486799
724627499
163062249
372027851
130155922
22420545
484246075
338862491
164445568
798210751
48548283
433874628
693133775
51641567
495452371
40680122
258431062
561217234
291767728
445704227
589952651
239322870
232378329
397173983
873681037
754023459
849183701
590797844
1431...

output:

walk 641121818
walk 125787131
walk 644307619
walk 581939308
walk 29252581
walk 827452951
walk 849856589
walk 555155853
walk 33171051
walk 1960130
walk 895228741
walk 974685620
walk 530529519
walk 622500641
walk 523220361
walk 589087577
walk 583496690
walk 362057295
walk 469198150
walk 708330127
walk...

result:

ok OK, guesses=6157

Test #19:

score: 0
Accepted
time: 13ms
memory: 4632kb

input:

178579340
182968355
153111942
194421077
31854786
153769314
42082404
28214144
145619700
229316456
96544514
134088788
239878834
132989847
2053692
210934790
90671431
179028945
262423181
174225018
136072027
273511316
18441866
183464156
182154111
176451928
269900452
119290074
272192039
249857691
58618009...

output:

walk 160044050
walk 318937825
walk 764962773
walk 425644631
walk 725761489
walk 679026909
walk 651102855
walk 74160741
walk 721960147
walk 259570122
walk 922271134
walk 132079188
walk 549631967
walk 475296327
walk 845007292
walk 497031102
walk 701764295
walk 776858351
walk 888123732
walk 973970358
w...

result:

ok OK, guesses=6019

Test #20:

score: 0
Accepted
time: 6ms
memory: 4556kb

input:

182524362
41544283
279480945
310211858
117567679
219856656
76955743
342843075
82031709
157557400
346664687
163791236
186336430
37985457
65184497
193660642
74301301
102729810
120944637
296850214
393594448
97821041
64279304
137624724
152927180
66031109
316254876
318351677
216041237
356646421
369107060...

output:

walk 650740992
walk 518003569
walk 3147675
walk 677422390
walk 802086115
walk 436182903
walk 345066292
walk 500215838
walk 962839746
walk 126045442
walk 175405485
walk 144600337
walk 444484626
walk 148495274
walk 605812294
walk 283597945
walk 55213807
walk 361292302
walk 118049809
walk 644999353
wal...

result:

ok OK, guesses=6020

Test #21:

score: 0
Accepted
time: 26ms
memory: 4636kb

input:

124416454
120218308
67941697
9767469
53472720
68508497
138984915
40787485
134109167
52636672
145670850
40044121
20348205
47163713
127926631
150001015
5413850
65949642
7827475
40135224
144461022
135337023
8621388
60424991
118581744
136299061
26950032
74273369
145907362
144316698
138777277
75498206
12...

output:

walk 633218364
walk 847222767
walk 214190148
walk 146401717
walk 186373798
walk 76881834
walk 62970793
walk 890831136
walk 135226626
walk 167079726
walk 602917947
walk 751067418
walk 960717158
walk 434350664
walk 556712083
walk 503879513
walk 306403240
walk 435763226
walk 207971515
walk 901520102
wa...

result:

ok OK, guesses=6009

Test #22:

score: 0
Accepted
time: 3ms
memory: 4464kb

input:

262695408
253464245
68910097
79850998
7528666
105513818
151426420
214902216
142848127
170654303
267941930
241159849
16043796
100606827
145529403
57130944
47147780
42843372
305048059
113270652
235075217
159252024
226397071
323331758
131864900
245893906
52469893
243776527
293977302
325696277
251277776...

output:

walk 50863841
walk 312801634
walk 775153238
walk 96467439
walk 879771157
walk 588982699
walk 428978206
walk 393501741
walk 682068146
walk 261050440
walk 882483761
walk 844854780
walk 326152369
walk 563680840
walk 323278068
walk 494712504
walk 507484565
walk 680215111
walk 818545169
walk 667195724
wa...

result:

ok OK, guesses=6014

Test #23:

score: 0
Accepted
time: 9ms
memory: 4432kb

input:

405022741
666510872
275179606
435360739
853666719
709236980
842027266
727601654
970990624
244370188
944819245
596881152
545169199
778554797
648336023
92575598
111557660
778455615
211969786
258467571
738231630
857951605
303878938
317984853
161500419
277279192
169719261
236243724
550010191
781080094
6...

output:

walk 666261330
walk 103257019
walk 513019179
walk 675269642
walk 645022760
walk 51045108
walk 956588130
walk 734761823
walk 586443341
walk 968752774
walk 828342647
walk 832343048
walk 213898023
walk 667113341
walk 744371652
walk 671735636
walk 592319712
walk 306489121
walk 674644588
walk 596268768
w...

result:

ok OK, guesses=6005

Test #24:

score: 0
Accepted
time: 11ms
memory: 4608kb

input:

307922503
346171960
412460709
25537745
777467389
83196059
513611801
152843426
886651926
871919820
175371004
612136969
276712284
959962951
463816370
317868359
595799895
264300300
790638307
935846261
888213486
266943564
620711604
635402507
443991154
408176295
188488494
27568832
222811979
507390544
280...

output:

walk 804645175
walk 704995927
walk 11027448
walk 852445823
walk 106106404
walk 535567540
walk 141429147
walk 510479203
walk 241879050
walk 392072331
walk 670970708
walk 950844222
walk 568632531
walk 474994454
walk 923426193
walk 780984366
walk 493583165
walk 125318648
walk 350686611
walk 377487830
w...

result:

ok OK, guesses=6098

Test #25:

score: 0
Accepted
time: 4ms
memory: 4428kb

input:

40276660
272079447
554175438
523762899
657224124
546849150
375947594
235464821
400223241
559189677
572635376
629357617
133398724
305408417
402795222
736855851
461366193
554834070
580399318
618890322
378771346
469527423
322899897
716598271
639237604
602273679
70233619
205032922
563858369
504243045
30...

output:

walk 462326371
walk 389973395
walk 824024720
walk 365145145
walk 203559188
walk 70047900
walk 805616877
walk 874592980
walk 925015938
walk 253631534
walk 80919370
walk 961564168
walk 724773294
walk 241147144
walk 395027662
walk 270727915
walk 498009070
walk 46996932
walk 160769687
walk 528347619
wal...

result:

ok OK, guesses=6018

Test #26:

score: 0
Accepted
time: 20ms
memory: 4612kb

input:

77305690
107288083
2836086
100285383
108264238
72199684
48110320
99013966
71783901
44220034
29166465
22736061
110124985
104157551
65244773
45806519
10542860
40388573
77172142
88243106
69313570
66569425
96820434
18162679
98421720
61995981
119180168
7778257
9996179
84594248
39320016
39150455
57664533
...

output:

walk 875093638
walk 480590334
walk 56633051
walk 692749287
walk 551600899
walk 997975909
walk 72790339
walk 461224856
walk 632918344
walk 349091512
walk 842998726
walk 173353564
walk 187061300
walk 309595644
walk 669983544
walk 49045281
walk 517581551
walk 956420549
walk 816517993
walk 409953798
wal...

result:

ok OK, guesses=6015

Test #27:

score: 0
Accepted
time: 5ms
memory: 4628kb

input:

852839661
164081484
384361736
109870433
146001257
608991910
200215104
67032092
146990012
216559926
718363634
846854063
710603495
422956350
500396484
720832996
796591970
277312591
790350687
304984279
113120715
101611019
151496405
546003690
476720002
292964146
896627768
320915683
262229535
121033338
3...

output:

walk 376291601
walk 384616398
walk 930993262
walk 944931727
walk 812355224
walk 120677073
walk 747716189
walk 150744198
walk 604930620
walk 36511504
walk 548542813
walk 489397549
walk 227855552
walk 117047670
walk 353500709
walk 546269957
walk 171222909
walk 884795566
walk 601776571
walk 165421877
w...

result:

ok OK, guesses=6099

Test #28:

score: 0
Accepted
time: 0ms
memory: 4608kb

input:

630913825
10047984
142004887
539224654
235629100
746558773
606480234
443762715
514207295
761811647
104970048
61909651
306956136
174112537
418390304
328685233
668242556
311149786
28773603
224725667
14434527
269838253
76664106
449697840
324067269
611764289
170824341
467685404
285205945
784177485
49005...

output:

walk 530808956
walk 379392180
walk 49170743
walk 726798774
walk 811242774
walk 173950039
walk 271314534
walk 118176976
walk 397500940
walk 76921935
walk 640756621
walk 854755118
walk 67492229
walk 182718821
walk 60050030
walk 753009392
walk 829660998
walk 226066415
walk 138724507
walk 417677825
walk...

result:

ok OK, guesses=6110

Test #29:

score: 0
Accepted
time: 17ms
memory: 4500kb

input:

414378779
822532051
65730466
637134529
734297732
693763264
762131728
728579425
283722965
414424778
27527974
933471157
789693975
639739643
521642653
741911801
195473731
862179680
680319815
243029928
694772835
930524716
466044130
801603661
309546567
124498330
228874796
759207362
654162399
733270484
61...

output:

walk 939830250
walk 491816631
walk 576636439
walk 680834339
walk 192253005
walk 925427362
walk 619797500
walk 3542616
walk 701347926
walk 318892293
walk 51036243
walk 132956442
walk 410554693
walk 741595447
walk 828483367
walk 545932767
walk 377349451
walk 844659573
walk 306447179
walk 678504588
wal...

result:

ok OK, guesses=6258

Test #30:

score: 0
Accepted
time: 15ms
memory: 4608kb

input:

715867226
391942396
539126207
635640555
762460092
32676165
434255818
744536702
764973068
741211771
197796762
594001625
529260943
538013182
772462513
659701310
664186869
527055636
723244892
116505374
197580158
183292557
142856812
725432590
221608080
796820970
799679260
732970933
539892161
332648869
5...

output:

walk 704976106
walk 563538683
walk 29971365
walk 118414817
walk 824113294
walk 231480011
walk 340776621
walk 297501518
walk 288437108
walk 868397522
walk 502209513
walk 579995702
walk 480747161
walk 576434295
walk 694087711
walk 963292545
walk 975675319
walk 661800076
walk 172612776
walk 258957282
w...

result:

ok OK, guesses=6019

Test #31:

score: 0
Accepted
time: 5ms
memory: 4556kb

input:

346023183
682800402
677706518
412511992
70417855
2580525
143310284
383110403
192023638
124110597
484980085
277889366
602785801
465623508
97523818
101313381
815309284
298536508
695977908
749594572
500171031
785902133
773606902
825295415
120933756
143992150
392125776
626719362
397371991
609391607
6971...

output:

walk 60052217
walk 336777219
walk 854144810
walk 594044168
walk 517144557
walk 791401364
walk 140729759
walk 239800119
walk 668151929
walk 791325653
walk 360869488
walk 652147975
walk 324896435
walk 722076401
walk 491139004
walk 3789563
walk 713995903
walk 342465918
walk 397441400
walk 53616664
walk...

result:

ok OK, guesses=6176

Test #32:

score: 0
Accepted
time: 12ms
memory: 4608kb

input:

236014522
559877014
73570262
479829395
123079292
434139649
313489435
902522457
528025442
82220798
706626957
501238306
109258769
542450396
924687351
891683538
970863253
204845281
78112165
844566540
152108362
251080152
800749814
112231938
209043502
597954092
338868745
971320429
176775469
473306057
201...

output:

walk 440446749
walk 256747575
walk 701235886
walk 681909489
walk 311147541
walk 749665409
walk 225876834
walk 962316581
walk 475807811
walk 133905369
walk 698483704
walk 273066457
walk 773453377
walk 602146242
walk 784893037
walk 606039768
walk 36916255
walk 17288655
walk 874127538
walk 659544782
wa...

result:

ok OK, guesses=6006

Test #33:

score: 0
Accepted
time: 13ms
memory: 4632kb

input:

116585021
378410349
361583657
714652640
662357775
512675516
382143442
154213653
178104742
54201992
48375969
529047223
163029602
496552397
659936138
901968342
497757988
83692304
222263710
358284739
488685017
484872811
784737640
821048899
560351308
839514758
370919800
642055324
886879368
731896629
106...

output:

walk 116585020
walk 261825328
walk 931531633
walk 353068983
walk 896063460
walk 798676066
walk 817826251
walk 720428536
walk 23891089
walk 824455575
walk 942532302
walk 480671254
walk 582340704
walk 333522795
walk 163383741
walk 242032204
walk 544147971
walk 534292641
walk 138571406
walk 136021029
w...

result:

ok OK, guesses=6023

Test #34:

score: 0
Accepted
time: 5ms
memory: 4000kb

input:

2
1
1
2
1
1
2
1
2
2
2
2
1
1
2
2
1
1
1
2
1
1
1
2
1
2
2
2
2
1
1
2
2
1
2
1
1
1
1
2
1
1
2
2
1
1
2
2
1
2
1
2
1
2
1
1
2
1
1
1
1
2
1
2
1
2
1
1
2
1
1
2
2
2
1
1
1
1
1
2
2
1
2
1
1
2
2
2
2
1
1
2
2
2
2
2
2
2
1
2
1
2
1
1
1
2
2
2
1
1
2
1
1
1
2
2
2
1
1
1
2
1
1
2
1
2
2
2
1
1
1
1
1
1
1
1
2
2
1
1
2
2
2
2
2
2
2
1
2
2
...

output:

walk 818877779
walk 228739415
walk 587944872
walk 92002189
walk 870118157
walk 563336328
walk 271682591
walk 793889933
walk 142344235
walk 538283778
walk 9258564
walk 82918288
walk 447099027
walk 74975484
walk 514227201
walk 207238850
walk 385498125
walk 923186604
walk 884641978
walk 35472951
walk 6...

result:

ok OK, guesses=6000

Test #35:

score: 0
Accepted
time: 7ms
memory: 3924kb

input:

3
1
1
1
1
2
2
1
2
1
3
3
2
3
2
2
1
1
3
3
2
3
1
2
1
3
2
3
2
2
2
1
1
3
2
2
3
3
3
2
2
2
2
3
1
3
3
3
1
1
3
1
1
3
1
3
1
3
2
2
3
3
2
3
2
2
2
1
2
1
3
2
1
1
2
3
2
1
2
2
2
3
1
2
1
3
2
2
3
2
3
2
2
3
1
1
3
2
2
2
2
1
3
3
2
1
2
2
3
1
3
1
2
2
3
2
3
3
1
2
3
3
3
3
2
1
2
3
2
2
1
1
2
1
1
2
1
2
1
3
2
1
3
2
2
2
3
2
2
3
...

output:

walk 638723723
walk 354639749
walk 630560805
walk 210325209
walk 513413247
walk 66266360
walk 11802159
walk 952795759
walk 983494136
walk 529614394
walk 268020064
walk 526772742
walk 854867809
walk 624583430
walk 485533633
walk 953200407
walk 587912212
walk 165149757
walk 574284466
walk 490917105
wa...

result:

ok OK, guesses=6000

Test #36:

score: 0
Accepted
time: 13ms
memory: 3920kb

input:

3
2
4
1
1
3
2
2
4
3
2
1
1
4
1
1
3
3
1
2
2
4
1
1
3
1
2
1
1
1
4
4
4
2
4
3
2
4
4
4
3
2
2
2
3
4
2
1
1
4
2
1
4
1
1
3
3
4
4
1
1
1
4
2
1
4
2
1
4
2
4
1
1
4
2
1
4
2
4
1
1
4
3
4
3
3
2
3
2
2
2
3
3
4
2
1
1
3
4
4
4
3
1
1
4
4
2
2
2
4
4
1
2
3
1
4
4
3
4
3
3
1
3
1
4
4
4
4
3
2
1
1
1
2
3
3
2
3
3
4
1
1
1
1
2
4
3
2
2
3
...

output:

walk 254243002
walk 728462334
walk 21160219
walk 443191302
walk 772491872
walk 110297629
walk 486876222
walk 698442644
walk 445597291
walk 173591051
walk 499127674
walk 196986881
walk 373599696
walk 656089366
walk 300626214
walk 589076516
walk 725607841
walk 782982084
walk 658624111
walk 275721835
w...

result:

ok OK, guesses=6000

Test #37:

score: 0
Accepted
time: 11ms
memory: 4004kb

input:

4
2
5
2
3
3
1
4
2
4
3
1
2
3
2
2
4
2
4
2
1
5
2
1
3
5
2
5
4
1
2
4
4
3
3
3
1
2
2
3
4
2
5
3
5
4
3
5
5
4
4
5
3
5
3
2
4
4
2
2
1
2
1
4
1
2
1
2
3
5
2
4
5
5
1
1
3
4
2
1
2
5
1
1
5
3
3
4
1
5
4
2
2
4
4
3
1
4
4
2
1
1
4
5
2
1
5
5
5
1
4
4
5
3
2
2
3
5
2
5
2
1
5
1
2
4
1
2
5
1
5
1
3
1
2
2
4
4
1
2
4
2
4
3
2
4
2
5
2
1
...

output:

walk 363950187
walk 498827306
walk 760279631
walk 825708529
walk 293510142
walk 260261855
walk 246241701
walk 225367091
walk 769754916
walk 266356199
walk 242596188
walk 258897781
walk 742625017
walk 504606362
walk 734670148
walk 434883815
walk 953378509
walk 839745836
walk 184847589
walk 9956571
wa...

result:

ok OK, guesses=6000

Test #38:

score: 0
Accepted
time: 13ms
memory: 3804kb

input:

4
2
1
3
5
4
2
2
3
2
3
3
4
4
4
1
6
2
5
1
5
3
2
4
1
2
4
4
3
5
6
3
1
3
4
2
6
1
4
3
3
3
3
5
2
4
4
1
2
4
2
4
1
5
3
1
4
4
6
1
5
5
2
1
6
6
4
1
3
2
6
6
1
1
5
4
2
5
4
3
4
4
2
5
2
6
1
2
3
3
6
3
1
6
1
6
3
3
5
1
2
3
5
5
5
1
4
2
5
6
5
2
2
3
6
3
6
2
5
4
3
4
4
5
4
3
6
3
4
6
2
1
1
2
4
3
2
6
6
1
1
5
6
5
5
6
4
1
3
1
...

output:

walk 121453285
walk 136341962
walk 928653509
walk 740315980
walk 381729328
walk 703278963
walk 885297062
walk 401593518
walk 90950055
walk 765981549
walk 71520309
walk 69809928
walk 541494511
walk 255111558
walk 331989384
walk 473362537
walk 362783991
walk 753332164
walk 655482739
walk 304074424
wal...

result:

ok OK, guesses=6000

Test #39:

score: 0
Accepted
time: 20ms
memory: 4376kb

input:

1351
103
2613
1277
176
819
86
522
183
539
1154
460
2982
953
1768
545
2610
870
490
1421
1164
413
2826
2789
517
1605
1362
2987
914
2593
645
316
1116
1304
700
2083
1715
2366
403
1713
985
2471
586
871
480
235
2158
1233
2205
288
2956
1159
1574
2318
1134
2115
1354
2229
1355
402
2519
380
22
1779
2721
2633
...

output:

walk 635054210
walk 436959036
walk 242202232
walk 528775549
walk 576510139
walk 201175109
walk 577402252
walk 761346850
walk 985694298
walk 742919184
walk 315232822
walk 288167370
walk 25744681
walk 748608969
walk 998741404
walk 793331778
walk 832740208
walk 367120791
walk 186463078
walk 772195852
w...

result:

ok OK, guesses=6000

Test #40:

score: 0
Accepted
time: 5ms
memory: 4228kb

input:

1863
144
799
1741
930
841
934
542
253
1527
311
1354
3
1260
245
322
967
1245
1074
1540
377
144
1651
1035
1778
1194
882
40
548
1526
996
1477
1573
1741
785
389
1984
1896
1504
76
168
1600
907
889
1833
1730
1667
1794
1002
603
374
1237
940
1814
1869
1059
12
1147
1857
1251
1831
1589
1065
84
519
700
990
107...

output:

walk 16925155
walk 220660943
walk 90658738
walk 124319666
walk 447767474
walk 904311338
walk 788698992
walk 672972584
walk 833674409
walk 763582302
walk 410089908
walk 624997407
walk 723732968
walk 998695026
walk 548124302
walk 177736885
walk 495732816
walk 817139472
walk 620068243
walk 481174657
wa...

result:

ok OK, guesses=6000

Test #41:

score: 0
Accepted
time: 0ms
memory: 4508kb

input:

3696
3632
3604
2441
1597
779
1698
3634
1606
870
1143
906
1550
352
3597
1656
1287
1767
1717
2928
881
2666
2815
2693
3079
1481
1140
98
157
130
2374
3350
257
2538
587
1768
2221
2905
3169
1307
3564
198
510
1000
411
2070
1942
1373
510
1706
3821
412
26
102
1605
556
1853
1614
254
2811
1868
3793
295
1306
38...

output:

walk 967473302
walk 207258399
walk 478592996
walk 205502531
walk 239557301
walk 759478176
walk 178066460
walk 388381498
walk 912163717
walk 878943897
walk 444865585
walk 155484148
walk 809737912
walk 972366541
walk 667597688
walk 534184191
walk 703740381
walk 948317713
walk 478268265
walk 938004376
...

result:

ok OK, guesses=6001

Test #42:

score: 0
Accepted
time: 0ms
memory: 4408kb

input:

4571
6537
4163
279
2130
1006
513
5340
2319
4491
615
424
4223
2298
3229
2668
3053
2070
2253
6590
986
1148
6361
6131
2009
95
269
1430
3771
1849
6412
29
5777
5140
5052
4093
4589
2967
2461
961
4930
1356
59
6485
4606
6123
1424
5510
2894
5343
5637
5509
2804
2095
4578
506
5889
1280
5037
3144
5725
998
6648
...

output:

walk 530661538
walk 267174606
walk 898807085
walk 389885558
walk 738517278
walk 80702470
walk 983434313
walk 874709190
walk 545728748
walk 849674758
walk 836734037
walk 491715745
walk 66112804
walk 786941844
walk 859790843
walk 40532757
walk 788120869
walk 947759550
walk 945025753
walk 236382852
wal...

result:

ok OK, guesses=6002

Test #43:

score: 0
Accepted
time: 18ms
memory: 4392kb

input:

5451
2060
3097
2972
5914
616
16
4069
5812
2382
4439
6341
2970
2055
870
6072
3590
3719
1969
2792
1117
3202
2026
3524
3287
1504
454
111
1629
4652
43
3298
3763
21
2242
1741
18
3527
2675
2846
3904
1982
1800
2724
2108
6583
6378
1826
5702
4104
2212
2908
1530
4832
2828
237
5107
4954
6231
1298
4600
3081
354...

output:

walk 243634371
walk 718237729
walk 300531857
walk 779083227
walk 633638808
walk 514916623
walk 366433216
walk 920247389
walk 124534352
walk 680805696
walk 835007878
walk 434060126
walk 216805680
walk 405319824
walk 446253199
walk 81807325
walk 533949117
walk 684220318
walk 212792879
walk 192851706
w...

result:

ok OK, guesses=6002

Test #44:

score: 0
Accepted
time: 11ms
memory: 4620kb

input:

3258291
7868841
6394542
7010519
5707978
4288606
820606
2306803
6741699
5857924
569692
8381580
1515349
4940780
3444043
277642
1095032
7083899
731969
3728042
6896555
8559651
2694918
2348904
2967782
1783625
4063257
6238159
7871774
1337805
3396951
581474
8309312
3333619
1017996
3765392
6964582
7502263
7...

output:

walk 757061752
walk 595866644
walk 932196372
walk 751548902
walk 111565588
walk 287771382
walk 23794340
walk 823341902
walk 86283473
walk 675479984
walk 480626651
walk 87788104
walk 970214234
walk 641438140
walk 514808784
walk 904529369
walk 956432603
walk 473504282
walk 446233970
walk 366992858
wal...

result:

ok OK, guesses=6002

Test #45:

score: 0
Accepted
time: 4ms
memory: 4616kb

input:

2302334
5785963
6328429
8182238
3995915
3750717
4374926
1038814
2856348
5394392
9344411
5733919
9660101
9096941
10747817
893141
10248263
3445360
10396741
1899963
4464176
4387547
4333344
8925851
10696463
9314192
5286530
7993065
8954310
436571
8394843
5620776
8901331
6961760
8645045
5190866
6793035
13...

output:

walk 55234937
walk 324585327
walk 576976234
walk 697344236
walk 185726394
walk 360865189
walk 612555128
walk 762002775
walk 374997868
walk 120036277
walk 165606369
walk 197963158
walk 897640631
walk 603727045
walk 345448196
walk 931933387
walk 778242541
walk 982695345
walk 341174938
walk 328724276
w...

result:

ok OK, guesses=6003

Test #46:

score: 0
Accepted
time: 20ms
memory: 4608kb

input:

16526166
4882276
10831256
6948150
13677367
2016048
15656344
8788675
10944260
1675857
3359943
15675376
12117593
2507601
3504523
1033570
6834532
5404656
10512841
6260719
9772477
16739887
5907431
12060235
14106856
17313043
7227946
12923103
64611
15760036
7581026
12517528
2766124
6221183
2884848
1085141...

output:

walk 522808132
walk 202077001
walk 3421615
walk 114705232
walk 445193830
walk 439268614
walk 932773260
walk 529897478
walk 344340898
walk 193703562
walk 541676329
walk 904152763
walk 150119944
walk 296767916
walk 208328932
walk 907408809
walk 221019139
walk 731641120
walk 285179965
walk 78579118
wal...

result:

ok OK, guesses=6004

Test #47:

score: 0
Accepted
time: 13ms
memory: 4552kb

input:

763815
756807
115962
64499
565633
552220
206923
591799
672828
698718
491446
285170
569349
493199
397109
616916
723793
582206
137072
286968
4967
824520
81542
615281
832368
234078
243650
733441
683718
230849
802191
339544
82319
25968
418208
366254
308993
446270
33263
661066
635263
767745
516374
506466...

output:

walk 810010190
walk 642489502
walk 36655947
walk 244031944
walk 275504700
walk 895912658
walk 559505512
walk 635753329
walk 759468748
walk 553180424
walk 901091602
walk 530280127
walk 830860077
walk 269632403
walk 617150160
walk 974369987
walk 558406689
walk 52649584
walk 784771089
walk 619852009
wa...

result:

ok OK, guesses=6002

Test #48:

score: 0
Accepted
time: 6ms
memory: 4612kb

input:

10812363
19371837
25323969
14233781
10902850
49006595
41948574
27887745
33539749
25231455
136802
36513036
23532905
46974140
57365067
39762551
31129262
25049966
54264377
45969343
54291512
20999020
6370414
17587236
57094575
44167005
29883017
31302847
34480322
46879676
9050284
34685146
5260735
32964329...

output:

walk 335611579
walk 77371569
walk 674335183
walk 817389720
walk 414683405
walk 811172156
walk 370682314
walk 451792242
walk 484005014
walk 869718904
walk 11818428
walk 187771365
walk 759993371
walk 832949439
walk 743578580
walk 575804705
walk 572624071
walk 448566079
walk 194447415
walk 611802
walk ...

result:

ok OK, guesses=6012

Test #49:

score: 0
Accepted
time: 26ms
memory: 4640kb

input:

46012151
38455180
2392793
84624923
63784934
114718839
3608241
211398571
62903131
163306520
25311942
73875830
169110868
224576944
149056794
61621399
107023380
174587840
87125956
124759520
155783650
198348875
175734391
35503372
95532375
160639436
176882804
211153065
83434752
86321250
100537635
1825320...

output:

walk 616628847
walk 781700283
walk 388180495
walk 845033070
walk 555991062
walk 228705619
walk 284191451
walk 378410354
walk 539739477
walk 582319133
walk 908368350
walk 422798207
walk 14501506
walk 575439889
walk 996030727
walk 488422445
walk 323613172
walk 146046428
walk 231572628
walk 166712557
w...

result:

ok OK, guesses=6042

Test #50:

score: 0
Accepted
time: 10ms
memory: 4628kb

input:

489189074
207772639
32872568
35599033
311736369
429882216
416048850
266320204
446148465
293970982
371834642
304634687
402586888
370615138
494826818
371489855
420861057
176533377
115357462
393848163
271653488
478595593
4844601
445126653
472800729
42702596
14370354
192819251
201602496
130026164
374752...

output:

walk 893312439
walk 307009836
walk 484099365
walk 555370585
walk 606427319
walk 214408298
walk 78985502
walk 125806091
walk 833407366
walk 133132704
walk 370978515
walk 935518599
walk 709393306
walk 515455177
walk 778967987
walk 604522192
walk 884982478
walk 121341407
walk 412417751
walk 567676591
w...

result:

ok OK, guesses=6007

Test #51:

score: 0
Accepted
time: 0ms
memory: 4476kb

input:

902019815
431448262
420909976
573258699
764943962
283575997
188055352
16079944
760991740
424225868
864707765
333612773
207801399
570388239
321833973
767810638
874739428
121071391
869476905
431410287
226174826
557090959
264588513
299128463
432553780
388681572
821551247
574354102
581736360
555570010
6...

output:

walk 902019814
walk 453006682
walk 913039949
walk 152348723
walk 191685263
walk 442210270
walk 828057590
walk 751602827
walk 744911796
walk 586812363
walk 440481897
walk 392483243
walk 797766861
walk 362586840
walk 675023969
walk 445976665
walk 106928790
walk 169910198
walk 748405514
walk 485511617
...

result:

ok OK, guesses=6115

Test #52:

score: 0
Accepted
time: 0ms
memory: 4616kb

input:

64138397
170862024
173443609
92320266
108112756
29482789
188901210
117731078
159175758
180837864
26128056
186346909
101371936
33486691
29818792
80526914
33282328
177780339
86912514
153644428
110382871
62595080
148207484
149675315
4138453
187733105
114354987
18394081
61069213
35559679
65786943
182144...

output:

walk 921129144
walk 493240213
walk 968873050
walk 112134950
walk 982083955
walk 501144912
walk 352676714
walk 315346454
walk 814477852
walk 987953571
walk 231806778
walk 353477146
walk 108283320
walk 125373048
walk 962623566
walk 437224708
walk 725788586
walk 531014597
walk 682165347
walk 259990207
...

result:

ok OK, guesses=6007

Test #53:

score: 0
Accepted
time: 13ms
memory: 4548kb

input:

88460177
14163626
403130
39355851
3628996
227883623
118549310
91268403
115963898
200516628
18008380
131820165
217643947
164992564
5846524
79354097
206408984
56161365
65255828
126509067
108284514
202303862
213206666
196040250
238389907
104235869
38787677
119169531
54876966
203802273
29751712
18921503...

output:

walk 872028937
walk 259101763
walk 320444310
walk 932125088
walk 162497228
walk 209369662
walk 56668449
walk 524792100
walk 842440723
walk 112488116
walk 628103690
walk 146697285
walk 455978330
walk 376682284
walk 22874271
walk 549189686
walk 425840795
walk 851337091
walk 618274613
walk 450749532
wa...

result:

ok OK, guesses=6026