QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#339984#5309. Guess Cycle LengthQiulyAC ✓22ms4128kbC++231.2kb2024-02-28 11:05:172024-02-28 11:05:17

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3980kb

input:

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

output:

walk 0
walk 485865363
walk 795919793
walk 1155624
walk 618520270
walk 954585831
walk 214335393
walk 318155230
walk 246277584
walk 966482025
walk 95010000
walk 609892994
walk 579867827
walk 526886392
walk 447484202
walk 764044829
walk 185825085
walk 564172827
walk 672175182
walk 899761474
walk 138362...

result:

ok OK, guesses=3012

Test #2:

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

input:

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

output:

walk 0
walk 485865363
walk 795919793
walk 1155624
walk 618520270
walk 954585831
walk 214335393
walk 318155230
walk 246277584
walk 966482025
walk 95010000
walk 609892994
walk 579867827
walk 526886392
walk 447484202
walk 764044829
walk 185825085
walk 564172827
walk 672175182
walk 899761474
walk 138362...

result:

ok OK, guesses=3022

Test #3:

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

input:

1
5364
5157
781
1051
6882
2275
7505
5089
7114
7114
108
7935
4327
8529
3358
8443
1270
6452
7926
4174
9176
1137
6591
1797
5967
1767
7061
5928
1310
3567
3792
888
9289
5137
8854
9437
7029
5976
4142
3759
2705
3864
7659
2996
4708
9683
6457
996
1152
5751
6537
8047
4607
7198
265
994
5736
4097
44
167
7136
33...

output:

walk 0
walk 485865363
walk 795919793
walk 1155624
walk 618520270
walk 954585831
walk 214335393
walk 318155230
walk 246277584
walk 966482025
walk 95010000
walk 609892994
walk 579867827
walk 526886392
walk 447484202
walk 764044829
walk 185825085
walk 564172827
walk 672175182
walk 899761474
walk 138362...

result:

ok OK, guesses=6003

Test #4:

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

input:

1
485865364
281785157
282940781
901461051
856046882
70382275
388537505
634815089
601297114
696307114
306200108
886067935
412954327
860438529
624483358
810308443
374481270
46656452
946417926
960254174
932889176
964851137
402036591
559251797
514665967
383351767
67787061
916495928
297721310
171353567
2...

output:

walk 0
walk 485865363
walk 795919793
walk 1155624
walk 618520270
walk 954585831
walk 214335393
walk 318155230
walk 246277584
walk 966482025
walk 95010000
walk 609892994
walk 579867827
walk 526886392
walk 447484202
walk 764044829
walk 185825085
walk 564172827
walk 672175182
walk 899761474
walk 138362...

result:

ok OK, guesses=6018

Test #5:

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

input:

1919811
487785174
283704967
284860591
903380861
857966692
72302085
390457315
636734899
603216924
698226924
308119918
887987745
414874137
862358339
626403168
812228253
376401080
48576262
948337736
962173984
934808986
966770947
403956401
561171607
516585777
385271577
69706871
918415738
299641120
17327...

output:

walk 0
walk 485865363
walk 795919793
walk 1155624
walk 618520270
walk 954585831
walk 214335393
walk 318155230
walk 246277584
walk 966482025
walk 95010000
walk 609892994
walk 579867827
walk 526886392
walk 447484202
walk 764044829
walk 185825085
walk 564172827
walk 672175182
walk 899761474
walk 138362...

result:

ok OK, guesses=6165

Test #6:

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

input:

1
418420252
460584613
658578061
14455851
755234938
618160499
117346209
208846577
19590002
606360002
555357940
176342319
710617703
373075457
276743190
252828235
80797614
277018828
213697726
574609622
480358976
501723073
66906431
447459893
953857983
697844583
927929621
77858080
61364694
92763183
33530...

output:

walk 0
walk 485865363
walk 795919793
walk 1155624
walk 618520270
walk 954585831
walk 214335393
walk 318155230
walk 246277584
walk 966482025
walk 95010000
walk 609892994
walk 579867827
walk 526886392
walk 447484202
walk 764044829
walk 185825085
walk 564172827
walk 672175182
walk 899761474
walk 138362...

result:

ok OK, guesses=6225

Test #7:

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

input:

1
282318175
706729878
111971994
186882630
454540224
910563650
996065202
942444324
551675378
892284442
587962273
192689803
728659843
106822437
379915628
329270454
278871245
94857902
546146805
820623726
924242421
585726814
211071326
124186895
714255968
139142802
622233329
781086364
47913008
774935544
...

output:

walk 0
walk 102997131
walk 603732746
walk 567794131
walk 225901580
walk 732883070
walk 677254991
walk 85501552
walk 946379122
walk 609231054
walk 340609064
walk 695677831
walk 911978903
walk 228718667
walk 549066067
walk 727870313
walk 83560646
walk 16713753
walk 218602975
walk 221673208
walk 274476...

result:

ok OK, guesses=6030

Test #8:

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

input:

807380801
348750520
473235920
212907263
400932284
857934268
972208026
164836763
92173531
839694997
587088482
689610810
909528003
539631890
771171434
8238320
283441135
967956387
59480778
689849340
163052977
797740940
397536342
821486966
226175414
912586866
730846847
577070935
906327018
617123867
9146...

output:

walk 0
walk 102997131
walk 603732746
walk 567794131
walk 225901580
walk 732883070
walk 677254991
walk 85501552
walk 946379122
walk 609231054
walk 340609064
walk 695677831
walk 911978903
walk 228718667
walk 549066067
walk 727870313
walk 83560646
walk 16713753
walk 218602975
walk 221673208
walk 274476...

result:

ok OK, guesses=6263

Test #9:

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

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 0
walk 102997131
walk 603732746
walk 567794131
walk 225901580
walk 732883070
walk 677254991
walk 85501552
walk 946379122
walk 609231054
walk 340609064
walk 695677831
walk 911978903
walk 228718667
walk 549066067
walk 727870313
walk 83560646
walk 16713753
walk 218602975
walk 221673208
walk 274476...

result:

ok OK, guesses=3003

Test #10:

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

input:

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

output:

walk 0
walk 102997131
walk 603732746
walk 567794131
walk 225901580
walk 732883070
walk 677254991
walk 85501552
walk 946379122
walk 609231054
walk 340609064
walk 695677831
walk 911978903
walk 228718667
walk 549066067
walk 727870313
walk 83560646
walk 16713753
walk 218602975
walk 221673208
walk 274476...

result:

ok OK, guesses=3012

Test #11:

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

input:

125
384
771
841
896
819
104
172
149
185
510
561
81
544
943
257
568
247
134
234
317
473
338
880
341
901
61
17
757
921
212
969
194
149
642
392
367
485
552
136
749
759
900
88
825
689
123
606
470
627
518
370
155
961
273
814
632
991
166
468
77
324
561
826
901
983
726
663
586
628
504
803
955
376
277
529
3...

output:

walk 0
walk 102997131
walk 603732746
walk 567794131
walk 225901580
walk 732883070
walk 677254991
walk 85501552
walk 946379122
walk 609231054
walk 340609064
walk 695677831
walk 911978903
walk 228718667
walk 549066067
walk 727870313
walk 83560646
walk 16713753
walk 218602975
walk 221673208
walk 274476...

result:

ok OK, guesses=4002

Test #12:

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

input:

3860
1638
5906
6027
6272
6125
9169
1673
1503
1464
6922
7697
86
7378
7958
9234
7064
6241
9921
526
1454
7163
239
7341
3104
3576
7255
5246
5899
9858
7862
9247
8493
3272
8967
6642
5287
8501
7593
562
2808
7381
1735
417
9201
2928
3514
2786
1007
8303
7469
8806
5625
9950
7669
4419
4916
651
1876
1141
716
819...

output:

walk 0
walk 102997131
walk 603732746
walk 567794131
walk 225901580
walk 732883070
walk 677254991
walk 85501552
walk 946379122
walk 609231054
walk 340609064
walk 695677831
walk 911978903
walk 228718667
walk 549066067
walk 727870313
walk 83560646
walk 16713753
walk 218602975
walk 221673208
walk 274476...

result:

ok OK, guesses=6003

Test #13:

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

input:

46453
90344
82967
68556
32541
82132
69899
52795
47201
23621
43191
50535
72823
46658
12491
5728
11331
7585
24893
39308
8463
56405
76818
67417
60390
33027
30245
33680
30921
13750
81076
41010
72801
13936
87383
98166
48376
68933
57528
13833
91502
72639
30762
99961
76170
65300
7353
37452
18890
24083
1001...

output:

walk 0
walk 949393142
walk 421542039
walk 76466801
walk 843361798
walk 670062168
walk 85213610
walk 865494829
walk 512030934
walk 126747218
walk 454586365
walk 722684384
walk 196590281
walk 24156520
walk 594171851
walk 648771477
walk 79854290
walk 341814031
walk 801077952
walk 648236199
walk 6322872...

result:

ok OK, guesses=6003

Test #14:

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

input:

314059
101407
613116
985433
723744
12870
676315
632649
339751
728130
110336
469541
353213
398723
552880
903051
807670
335685
44799
532089
638325
310222
1319
616177
449456
876787
494871
520361
748102
498955
728700
243584
46898
275056
112697
778558
156883
275184
460186
546603
372788
847123
964838
6101...

output:

walk 0
walk 949393142
walk 421542039
walk 76466801
walk 843361798
walk 670062168
walk 85213610
walk 865494829
walk 512030934
walk 126747218
walk 454586365
walk 722684384
walk 196590281
walk 24156520
walk 594171851
walk 648771477
walk 79854290
walk 341814031
walk 801077952
walk 648236199
walk 6322872...

result:

ok OK, guesses=6003

Test #15:

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

input:

8867814
5730720
4269230
2364725
2699680
6286392
9184087
8772869
4641192
5178069
6989516
6829386
9046004
8926269
1318611
8501345
4401896
5886298
6976776
2833085
9361921
8356848
6198893
4377806
6371909
8023247
7312225
2211046
9054819
9633817
1672070
1327800
228516
4617697
9846372
6650174
3242506
34757...

output:

walk 0
walk 949393142
walk 421542039
walk 76466801
walk 843361798
walk 670062168
walk 85213610
walk 865494829
walk 512030934
walk 126747218
walk 454586365
walk 722684384
walk 196590281
walk 24156520
walk 594171851
walk 648771477
walk 79854290
walk 341814031
walk 801077952
walk 648236199
walk 6322872...

result:

ok OK, guesses=6003

Test #16:

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

input:

99432884
35306475
90576068
79088378
46453564
93522247
34211348
76236068
32265105
53216393
68864525
75046058
42033889
44463955
8562011
98198073
79144453
26297205
43736359
64384302
88213201
82859732
62727929
82345558
50369719
48412281
13286193
36784135
47972062
35858126
88176091
30776680
20049805
9123...

output:

walk 0
walk 949393142
walk 421542039
walk 76466801
walk 843361798
walk 670062168
walk 85213610
walk 865494829
walk 512030934
walk 126747218
walk 454586365
walk 722684384
walk 196590281
walk 24156520
walk 594171851
walk 648771477
walk 79854290
walk 341814031
walk 801077952
walk 648236199
walk 6322872...

result:

ok OK, guesses=6004

Test #17:

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

input:

54158582
605558294
459740848
154946057
993620852
696743195
313143313
738271008
404767716
607295414
361325916
193099
831134545
404119142
637766724
207554194
718469689
797947295
419729926
443519573
386824874
510877825
444264662
473440339
483132971
852600026
671722044
312861495
783508717
48087939
15270...

output:

walk 0
walk 949393142
walk 421542039
walk 76466801
walk 843361798
walk 670062168
walk 85213610
walk 865494829
walk 512030934
walk 126747218
walk 454586365
walk 722684384
walk 196590281
walk 24156520
walk 594171851
walk 648771477
walk 79854290
walk 341814031
walk 801077952
walk 648236199
walk 6322872...

result:

ok OK, guesses=6012

Test #18:

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

input:

372968849
575074172
223189295
228792124
189961643
644817073
917345087
566011925
207031047
149887958
642182334
319522859
4142816
65446670
85573512
65653411
364747428
365940969
236074863
419942713
405067883
727111470
811125016
663283729
451388835
905317438
630778546
870073568
437164947
742243744
63633...

output:

walk 0
walk 568429420
walk 230605485
walk 792223890
walk 453029501
walk 523653678
walk 550007170
walk 561833419
walk 140320557
walk 771646961
walk 703442483
walk 737126957
walk 457433740
walk 951080074
walk 772476677
walk 615453223
walk 908420102
walk 650569219
walk 277076150
walk 975536867
walk 971...

result:

ok OK, guesses=6195

Test #19:

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

input:

17300675
82335882
14074163
178239346
81295591
60860461
159852898
126123670
148483269
263502996
233194379
160062696
42065303
2983983
268308121
186205586
62059763
154975624
54001684
260176694
125001803
51135148
62155647
184975193
225149075
26328714
233485807
102977757
19714021
263197797
94542842
47559...

output:

walk 0
walk 568429420
walk 230605485
walk 792223890
walk 453029501
walk 523653678
walk 550007170
walk 561833419
walk 140320557
walk 771646961
walk 703442483
walk 737126957
walk 457433740
walk 951080074
walk 772476677
walk 615453223
walk 908420102
walk 650569219
walk 277076150
walk 975536867
walk 971...

result:

ok OK, guesses=6019

Test #20:

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

input:

359022371
106213554
164779787
46687810
206588586
8728476
114870804
368234067
309615374
156782477
192851185
386084007
372182213
209630222
365488060
196023420
380536542
327261658
88393092
53099355
152180482
330915007
67164672
80936848
95543461
104513278
362853823
335834063
291592388
117875307
70062366...

output:

walk 0
walk 568429420
walk 230605485
walk 792223890
walk 453029501
walk 523653678
walk 550007170
walk 561833419
walk 140320557
walk 771646961
walk 703442483
walk 737126957
walk 457433740
walk 951080074
walk 772476677
walk 615453223
walk 908420102
walk 650569219
walk 277076150
walk 975536867
walk 971...

result:

ok OK, guesses=6012

Test #21:

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

input:

32882259
2614773
123224993
31807833
100793014
49049821
62455873
32477623
143002272
80664249
128634403
24444354
105790237
6275667
83203950
4974691
33265865
57721457
100582805
52731287
7340877
32403548
72037689
9953579
30048347
42175004
135023579
133429534
74064094
2389810
100557598
77148436
105926214...

output:

walk 0
walk 568429420
walk 230605485
walk 792223890
walk 453029501
walk 523653678
walk 550007170
walk 561833419
walk 140320557
walk 771646961
walk 703442483
walk 737126957
walk 457433740
walk 951080074
walk 772476677
walk 615453223
walk 908420102
walk 650569219
walk 277076150
walk 975536867
walk 971...

result:

ok OK, guesses=6032

Test #22:

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

input:

256047514
169496596
213674446
267023677
178522955
147275041
76877922
307849349
144495655
69594467
134471712
71870195
325751530
291146789
131171498
108613169
6870719
80077722
215402392
281808412
212422737
327855460
295613973
256954046
298356758
160138299
22182141
49769876
70472903
321482274
121504300...

output:

walk 0
walk 568429420
walk 230605485
walk 792223890
walk 453029501
walk 523653678
walk 550007170
walk 561833419
walk 140320557
walk 771646961
walk 703442483
walk 737126957
walk 457433740
walk 951080074
walk 772476677
walk 615453223
walk 908420102
walk 650569219
walk 277076150
walk 975536867
walk 971...

result:

ok OK, guesses=6018

Test #23:

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

input:

768010109
293700240
295156605
561620406
71796355
574154911
206142943
547747351
228549218
88984395
29484397
235435397
98522027
52991687
900510712
672042750
626750645
742780456
393583955
915812958
944362584
463468431
40696756
95592197
453052989
531999096
828598515
567345673
156078519
108045912
7866618...

output:

walk 0
walk 264453023
walk 117179576
walk 369638478
walk 140789676
walk 307585884
walk 25571010
walk 190211489
walk 699313429
walk 355405541
walk 812425553
walk 682711163
walk 806661692
walk 740442971
walk 808734229
walk 672782213
walk 823542782
walk 39223973
walk 846213032
walk 392975491
walk 24358...

result:

ok OK, guesses=6295

Test #24:

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

input:

956404754
5886060
22353860
819510497
357105150
766551852
628101928
123361765
654935596
10920101
62727813
392867695
93461281
668309812
64889791
495626241
950733434
5931978
386314415
256276170
613174707
959320593
109003773
91130780
388328808
704044579
596798451
428318675
935428275
308510785
774978447
...

output:

walk 0
walk 264453023
walk 117179576
walk 369638478
walk 140789676
walk 307585884
walk 25571010
walk 190211489
walk 699313429
walk 355405541
walk 812425553
walk 682711163
walk 806661692
walk 740442971
walk 808734229
walk 672782213
walk 823542782
walk 39223973
walk 846213032
walk 392975491
walk 24358...

result:

ok OK, guesses=6009

Test #25:

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

input:

727644436
672475957
335541112
651270205
221554956
534832513
493089886
426234052
303557522
687103981
501180384
15908351
386745963
31254107
581800705
481413885
300176219
741131010
226356596
74052088
377832120
742942024
21023151
692282020
3574608
303847551
178691382
684551848
376895226
139273244
450121...

output:

walk 0
walk 264453023
walk 117179576
walk 369638478
walk 140789676
walk 307585884
walk 25571010
walk 190211489
walk 699313429
walk 355405541
walk 812425553
walk 682711163
walk 806661692
walk 740442971
walk 808734229
walk 672782213
walk 823542782
walk 39223973
walk 846213032
walk 392975491
walk 24358...

result:

ok OK, guesses=6048

Test #26:

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

input:

91103713
94195560
59251277
72151596
58830866
76974011
92323395
2225973
118208865
76588486
11946763
17797453
99514307
21223883
60471785
5718638
58686900
85937861
3871860
53773899
26017861
72802618
84558665
53961442
1258987
82353618
45536213
13380072
77690082
52818381
36531641
89978651
9517310
9146685...

output:

walk 0
walk 264453023
walk 117179576
walk 369638478
walk 140789676
walk 307585884
walk 25571010
walk 190211489
walk 699313429
walk 355405541
walk 812425553
walk 682711163
walk 806661692
walk 740442971
walk 808734229
walk 672782213
walk 823542782
walk 39223973
walk 846213032
walk 392975491
walk 24358...

result:

ok OK, guesses=6010

Test #27:

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

input:

205145635
362242738
21397124
946169622
4297193
885350797
213507117
420876656
853856115
732925341
388390264
451623372
605348444
300326330
35216004
273314947
225555514
600100977
630847084
930410760
777736252
532163148
588222433
774889306
376043804
455022348
484766936
300237572
395086357
576960961
7673...

output:

walk 0
walk 264453023
walk 117179576
walk 369638478
walk 140789676
walk 307585884
walk 25571010
walk 190211489
walk 699313429
walk 355405541
walk 812425553
walk 682711163
walk 806661692
walk 740442971
walk 808734229
walk 672782213
walk 823542782
walk 39223973
walk 846213032
walk 392975491
walk 24358...

result:

ok OK, guesses=6113

Test #28:

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

input:

108597945
352357470
166073596
246364028
499337830
476417782
114095218
827910417
8749718
426968202
554964825
668566342
297187940
81212826
540651732
691194943
684231160
752644777
318873016
439796216
33732150
143927944
585876800
315723690
328175578
43780123
559097085
694814406
369153918
627592306
40985...

output:

walk 0
walk 101073626
walk 851181449
walk 11543331
walk 820002793
walk 232982683
walk 416679001
walk 29247061
walk 251132480
walk 74275967
walk 55879138
walk 693423980
walk 67895157
walk 513851565
walk 908320740
walk 639978547
walk 792935469
walk 415211726
walk 322779182
walk 786758842
walk 57417413...

result:

ok OK, guesses=6215

Test #29:

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

input:

1
722666792
59080491
398666558
34105160
609784666
18814247
256185354
284029874
249258345
853585294
690844913
325657085
208381927
693719251
664426400
516581865
836778772
836894321
406502925
640624645
220339944
117409618
838641905
748725888
556575482
776423826
307731429
268126543
643531259
852854022
4...

output:

walk 0
walk 101073626
walk 851181449
walk 11543331
walk 820002793
walk 232982683
walk 416679001
walk 29247061
walk 251132480
walk 74275967
walk 55879138
walk 693423980
walk 67895157
walk 513851565
walk 908320740
walk 639978547
walk 792935469
walk 415211726
walk 322779182
walk 786758842
walk 57417413...

result:

ok OK, guesses=6291

Test #30:

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

input:

1
207119050
247355054
360964691
461231805
4861572
317667929
347183227
253299430
65145257
589058347
577575825
242068617
726465406
79856386
760297855
640491679
339550960
779585240
54441209
457290007
280213627
268870725
244674115
533708862
403069824
426260511
41370291
201870507
459953677
43794305
30001...

output:

walk 0
walk 101073626
walk 851181449
walk 11543331
walk 820002793
walk 232982683
walk 416679001
walk 29247061
walk 251132480
walk 74275967
walk 55879138
walk 693423980
walk 67895157
walk 513851565
walk 908320740
walk 639978547
walk 792935469
walk 415211726
walk 322779182
walk 786758842
walk 57417413...

result:

ok OK, guesses=6071

Test #31:

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

input:

285970966
387044592
378987347
390530678
351294777
584277460
141717767
170964828
422097308
496373275
552252413
386437699
454332856
108945727
158027773
798006320
731703095
287676127
610455309
537975457
252910894
809205191
52386092
484030015
492489777
632916399
377130226
319296699
115221890
364069348
3...

output:

walk 0
walk 101073626
walk 851181449
walk 11543331
walk 820002793
walk 232982683
walk 416679001
walk 29247061
walk 251132480
walk 74275967
walk 55879138
walk 693423980
walk 67895157
walk 513851565
walk 908320740
walk 639978547
walk 792935469
walk 415211726
walk 322779182
walk 786758842
walk 57417413...

result:

ok OK, guesses=6090

Test #32:

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

input:

1
201638840
107311237
805181040
721867973
349782045
647347831
638777665
539464372
143572392
833591859
222261638
410883149
756993200
606938940
634963579
548598175
184547043
153831938
592911104
766143714
186936285
394807413
672525232
177318777
838411664
128539460
105895891
164665781
696388220
96941479...

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=6038

Test #33:

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

input:

1
796071569
511796117
151999163
584775454
675424169
618948715
400462796
262103403
846092354
935436914
773273126
241811349
542936952
634465210
235802550
867686259
722343765
592149195
646058505
616689464
455459382
189221212
104700429
697336958
383084906
864321320
21961316
24465444
393475704
71249468
5...

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=6214

Test #34:

score: 0
Accepted
time: 2ms
memory: 3876kb

input:

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

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=3004

Test #35:

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

input:

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

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=3005

Test #36:

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

input:

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

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=3006

Test #37:

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

input:

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

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=3007

Test #38:

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

input:

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

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=3008

Test #39:

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

input:

345
1007
2667
2661
2057
2956
2390
314
2341
1350
1192
1002
1234
945
1560
2098
1479
472
2817
2388
1104
2886
2521
232
547
499
2414
2201
44
2619
270
1504
14
1842
146
1799
312
1303
473
1312
278
347
18
1227
1360
1837
567
819
1643
81
2398
2712
181
1793
2054
1243
2645
1350
245
382
2883
1442
204
1777
2794
63...

output:

walk 0
walk 796071568
walk 664082873
walk 588561371
walk 432776291
walk 90648715
walk 891882871
walk 729872406
walk 809998932
walk 583988951
walk 89344560
walk 786194537
walk 416896548
walk 301125603
walk 91528258
walk 549695665
walk 631883709
walk 803015831
walk 818163755
walk 53909310
walk 9189892...

result:

ok OK, guesses=6002

Test #40:

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

input:

725
1863
1624
98
551
1568
444
1668
139
17
1235
1079
437
806
61
1995
1308
939
1642
814
1135
452
211
1992
1087
1794
1069
1033
702
855
1958
949
1819
1334
1575
1083
1688
1040
442
1270
1815
1991
638
167
1598
5
457
1561
1561
174
575
49
1797
731
1755
273
464
1632
1952
1637
345
329
1262
101
1164
318
861
151...

output:

walk 0
walk 499783155
walk 562165323
walk 100396436
walk 129377856
walk 962011233
walk 303845035
walk 442190427
walk 385208679
walk 180337628
walk 357619969
walk 750918365
walk 781735578
walk 30484651
walk 76552654
walk 626343602
walk 636817134
walk 144311782
walk 337407470
walk 490254838
walk 22215...

result:

ok OK, guesses=5002

Test #41:

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

input:

3489
1886
2492
17
2749
1292
2222
1226
115
776
1740
1045
3113
3459
1605
1850
860
1179
1503
2146
1273
3806
136
1353
3422
158
2180
3658
2338
1372
1473
3418
1053
3779
1566
309
2394
3886
809
1135
427
1345
2000
286
1295
231
2102
1363
1363
807
1876
2721
3376
3648
2132
3281
2194
2011
3208
3934
2959
2884
131...

output:

walk 0
walk 499783155
walk 562165323
walk 100396436
walk 129377856
walk 962011233
walk 303845035
walk 442190427
walk 385208679
walk 180337628
walk 357619969
walk 750918365
walk 781735578
walk 30484651
walk 76552654
walk 626343602
walk 636817134
walk 144311782
walk 337407470
walk 490254838
walk 22215...

result:

ok OK, guesses=6003

Test #42:

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

input:

1202
3485
4999
1848
1915
4541
1758
4724
6185
4379
2306
5470
4315
1818
5490
6158
5446
1795
4534
3743
4186
25
2674
5372
3025
1722
3081
5569
2812
1039
82
4650
5678
6384
1052
1836
5463
2302
3396
3472
3233
4396
6302
211
5334
2857
5269
4391
2619
4738
6363
770
3898
349
6316
6197
4663
4591
6285
3811
5283
51...

output:

walk 0
walk 499783155
walk 562165323
walk 100396436
walk 129377856
walk 962011233
walk 303845035
walk 442190427
walk 385208679
walk 180337628
walk 357619969
walk 750918365
walk 781735578
walk 30484651
walk 76552654
walk 626343602
walk 636817134
walk 144311782
walk 337407470
walk 490254838
walk 22215...

result:

ok OK, guesses=6003

Test #43:

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

input:

5815
3810
1533
3764
5306
5649
1493
3533
3056
4137
1403
4915
3009
765
1443
3138
3035
5757
6607
3769
5518
1030
6056
1829
1287
1701
4743
2074
4140
1332
1034
3728
298
6530
6578
951
6585
2637
4374
5710
1324
3877
3101
3700
3497
500
6111
3191
1690
1041
1967
3565
4570
1176
1434
1569
794
6182
3877
1001
8
614...

output:

walk 0
walk 499783155
walk 562165323
walk 100396436
walk 129377856
walk 962011233
walk 303845035
walk 442190427
walk 385208679
walk 180337628
walk 357619969
walk 750918365
walk 781735578
walk 30484651
walk 76552654
walk 626343602
walk 636817134
walk 144311782
walk 337407470
walk 490254838
walk 22215...

result:

ok OK, guesses=6003

Test #44:

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

input:

6647514
8381374
8903733
6030286
2301714
4844956
2521556
8806040
8328723
2792037
3431721
8237203
138135
4750586
4076765
8881279
6077889
5865561
7453005
7704285
4400504
8741986
2178591
7068525
5177686
7075379
748968
1143367
3558603
5860185
6294097
8864385
4094279
7860585
3792849
4954538
4215813
185222...

output:

walk 0
walk 499783155
walk 562165323
walk 100396436
walk 129377856
walk 962011233
walk 303845035
walk 442190427
walk 385208679
walk 180337628
walk 357619969
walk 750918365
walk 781735578
walk 30484651
walk 76552654
walk 626343602
walk 636817134
walk 144311782
walk 337407470
walk 490254838
walk 22215...

result:

ok OK, guesses=6005

Test #45:

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

input:

4560296
1754766
2875146
3920174
1278008
9481154
2203748
3008109
9456881
993332
1928186
4410261
10043749
1647219
2862693
4678803
7765116
3908348
5600493
5408344
2136257
10217780
6504112
10227697
8080971
1872190
2583347
5671027
78686
1689480
8847040
6827984
5692591
7095576
5438697
3493501
573887
91902...

output:

walk 0
walk 125682628
walk 377809411
walk 756561738
walk 674140482
walk 822985376
walk 711505097
walk 149852321
walk 21848323
walk 918362368
walk 547164451
walk 774903129
walk 65078685
walk 901947475
walk 265895815
walk 545267926
walk 562142199
walk 539751337
walk 917014278
walk 920096886
walk 65024...

result:

ok OK, guesses=6003

Test #46:

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

input:

16615752
6830435
5807247
11773230
1462898
19136736
4343687
16033070
5887828
8380554
2112013
3798414
3003017
15019634
5748609
12675967
7347536
8687703
17476554
2552988
5906118
7055787
16226311
14151110
15592534
1506862
16231334
19177696
12007834
17873540
11042839
2333141
9301113
7876505
15423019
7004...

output:

walk 0
walk 125682628
walk 377809411
walk 756561738
walk 674140482
walk 822985376
walk 711505097
walk 149852321
walk 21848323
walk 918362368
walk 547164451
walk 774903129
walk 65078685
walk 901947475
walk 265895815
walk 545267926
walk 562142199
walk 539751337
walk 917014278
walk 920096886
walk 65024...

result:

ok OK, guesses=6005

Test #47:

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

input:

308559
781021
543034
588494
459086
137596
360803
96726
317206
467143
118371
260725
712567
148153
621078
742504
728388
494980
190694
511973
112283
137102
561098
441217
740641
466609
378028
801753
271044
813284
483544
249183
78758
311202
697917
659113
24911
113542
309219
417669
498061
696299
752256
38...

output:

walk 0
walk 125682628
walk 377809411
walk 756561738
walk 674140482
walk 822985376
walk 711505097
walk 149852321
walk 21848323
walk 918362368
walk 547164451
walk 774903129
walk 65078685
walk 901947475
walk 265895815
walk 545267926
walk 562142199
walk 539751337
walk 917014278
walk 920096886
walk 65024...

result:

ok OK, guesses=6003

Test #48:

score: 0
Accepted
time: 22ms
memory: 3992kb

input:

53206456
46213457
28306
49976771
34619144
9318786
9751356
11868632
51163795
12476128
42565755
3552864
33693731
22983327
210453
13309032
51377775
2698192
21733958
39164300
14440256
464340
18113675
38925663
5307253
12610835
38497800
5406596
20907283
7578171
24455110
10652851
28429520
42992211
47798644...

output:

walk 0
walk 125682628
walk 377809411
walk 756561738
walk 674140482
walk 822985376
walk 711505097
walk 149852321
walk 21848323
walk 918362368
walk 547164451
walk 774903129
walk 65078685
walk 901947475
walk 265895815
walk 545267926
walk 562142199
walk 539751337
walk 917014278
walk 920096886
walk 65024...

result:

ok OK, guesses=6023

Test #49:

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

input:

169613935
208551140
237826486
52321535
22591802
72066438
59471226
215455827
185700693
209015014
170785561
125608750
129143138
153637133
199161356
114113080
200777701
73069540
106898741
161407397
118471859
68773323
122726274
226152346
180984378
39831322
158808248
18450337
184417584
210574209
17800249...

output:

walk 0
walk 125682628
walk 377809411
walk 756561738
walk 674140482
walk 822985376
walk 711505097
walk 149852321
walk 21848323
walk 918362368
walk 547164451
walk 774903129
walk 65078685
walk 901947475
walk 265895815
walk 545267926
walk 562142199
walk 539751337
walk 917014278
walk 920096886
walk 65024...

result:

ok OK, guesses=6008

Test #50:

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

input:

87183177
247015023
119355927
186703618
439857455
343274894
327170150
409249502
480787538
502630920
304920880
459583487
104345276
471484990
249498504
277606743
281270207
260461746
50219065
249686308
510870584
22395377
159464844
261049467
437666466
249568565
81377555
122128083
197991308
271797484
2216...

output:

walk 0
walk 961360300
walk 181121983
walk 321909937
walk 352356411
walk 669574608
walk 172640817
walk 914059917
walk 641661480
walk 484917406
walk 641902831
walk 852883938
walk 467590916
walk 747634739
walk 358242390
walk 504590337
walk 455972410
walk 907697859
walk 457439925
walk 237782481
walk 898...

result:

ok OK, guesses=6031

Test #51:

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

input:

1
37782066
218904049
540813986
893170397
639166770
811807587
802289269
520372514
81711685
723614516
652920219
196932900
20989404
379231794
883822131
416216306
400335930
857775855
171980101
146625467
338437467
922407113
108195274
34979588
167073169
604194559
80954356
291754084
352139288
872164277
237...

output:

walk 0
walk 961360300
walk 181121983
walk 321909937
walk 352356411
walk 669574608
walk 172640817
walk 914059917
walk 641661480
walk 484917406
walk 641902831
walk 852883938
walk 467590916
walk 747634739
walk 358242390
walk 504590337
walk 455972410
walk 907697859
walk 457439925
walk 237782481
walk 898...

result:

ok OK, guesses=6384

Test #52:

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

input:

109300718
104369553
92233243
27626594
186724712
83266148
62648672
10417124
72303725
170704545
39574204
119424970
7241007
175100867
146826671
71642129
141097953
82504347
153427686
4693581
129884010
128437717
132632484
48740587
126069964
64905252
115510056
129331502
146872937
164544911
104795021
17992...

output:

walk 0
walk 961360300
walk 181121983
walk 321909937
walk 352356411
walk 669574608
walk 172640817
walk 914059917
walk 641661480
walk 484917406
walk 641902831
walk 852883938
walk 467590916
walk 747634739
walk 358242390
walk 504590337
walk 455972410
walk 907697859
walk 457439925
walk 237782481
walk 898...

result:

ok OK, guesses=6079

Test #53:

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

input:

1
165810810
53495714
211232734
48465615
51777687
57743184
19216484
10806683
178531860
194407622
131633978
32680340
87791582
38289894
29682288
53791800
176120349
217201986
155829997
71952718
85950845
27679459
129836892
120276735
177669699
34706527
16937334
156904831
161513251
108122585
57612446
40037...

output:

walk 0
walk 961360300
walk 181121983
walk 321909937
walk 352356411
walk 669574608
walk 172640817
walk 914059917
walk 641661480
walk 484917406
walk 641902831
walk 852883938
walk 467590916
walk 747634739
walk 358242390
walk 504590337
walk 455972410
walk 907697859
walk 457439925
walk 237782481
walk 898...

result:

ok OK, guesses=6010