QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#748702#5309. Guess Cycle LengthHuluoboAC ✓23ms3896kbC++171.1kb2024-11-14 21:07:532024-11-14 21:07:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 12ms
memory: 3712kb

input:

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

output:

walk 481149575
walk 345507430
walk 4156362
walk 284761420
walk 73792184
walk 646148849
walk 841017656
walk 773738528
walk 351803202
walk 583990763
walk 879488594
walk 833835887
walk 589786872
walk 258309538
walk 436781895
walk 522191206
walk 970856897
walk 477350632
walk 119769491
walk 958879373
wal...

result:

ok OK, guesses=3343

Test #2:

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

input:

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

output:

walk 375215873
walk 168984908
walk 124187098
walk 555031953
walk 463935018
walk 690287067
walk 59348351
walk 783939642
walk 117008587
walk 352478138
walk 31137461
walk 531616637
walk 344845154
walk 440514706
walk 898690496
walk 229798284
walk 796450234
walk 605805583
walk 488796778
walk 220930283
wa...

result:

ok OK, guesses=3353

Test #3:

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

input:

8316
6505
9509
6357
896
4891
4139
2825
8215
651
8974
2534
4569
2535
3374
9228
9624
5221
4769
2270
843
1079
5500
9257
3165
8988
6977
261
2206
9363
9037
8415
5428
2269
796
2691
3097
8351
4565
4804
3169
5246
134
199
629
5536
6512
9244
8031
6979
9714
1048
6062
3801
3462
4940
1434
495
3593
7279
6221
1234...

output:

walk 38188315
walk 728258189
walk 119103004
walk 66536848
walk 945734539
walk 332123995
walk 201119248
walk 249858686
walk 908835390
walk 7532436
walk 535778323
walk 482753560
walk 391272035
walk 323147966
walk 566360839
walk 475225854
walk 60650396
walk 859315597
walk 740759548
walk 502767501
walk ...

result:

ok OK, guesses=6667

Test #4:

score: 0
Accepted
time: 23ms
memory: 3868kb

input:

661855219
32559878
192301375
777277331
820500339
764514072
384073040
888886029
577993380
671375220
433696270
16668138
35569649
712735695
247170598
960736398
185961915
651859751
167989492
821401024
305951549
122188379
208925525
894482099
208549570
687102886
346834329
591015231
948387194
883513099
982...

output:

walk 661855218
walk 370704659
walk 159741497
walk 584975956
walk 43223008
walk 944013733
walk 619558968
walk 504812989
walk 689107351
walk 93381840
walk 762321050
walk 582971868
walk 18901511
walk 677166046
walk 534434903
walk 713565800
walk 225225517
walk 465897836
walk 516129741
walk 653411532
wal...

result:

ok OK, guesses=6733

Test #5:

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

input:

613326857
135943135
397747531
21881046
875679792
308135105
497706029
41867353
952738494
617447423
388700994
295398004
679053561
162429056
548356646
714603289
983382463
649458742
222609130
281049069
448270035
568705824
599124377
113669513
463642338
208927414
40962091
679937983
121673235
966618149
869...

output:

walk 611407046
walk 522616278
walk 261804396
walk 624133515
walk 853798746
walk 432455313
walk 189570924
walk 544161324
walk 910871141
walk 664708929
walk 771253571
walk 906697010
walk 383655557
walk 483375495
walk 385927590
walk 166246643
walk 268779174
walk 666076279
walk 573150388
walk 58439939
w...

result:

ok OK, guesses=6768

Test #6:

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

input:

443463843
424964979
360059998
64459754
19114531
966796540
583693662
354500087
183916049
101835979
8689801
304246031
44024163
194345269
936962368
642316755
752516222
208110595
750126836
130528233
844353297
120729190
786432072
105470838
295085814
326398349
649019726
771929263
124973430
554050267
50890...

output:

walk 734348146
walk 273900368
walk 925650147
walk 736184428
walk 510168801
walk 820710017
walk 958868786
walk 954601025
walk 166177706
walk 531062090
walk 474875886
walk 264063990
walk 807692916
walk 761746978
walk 79805187
walk 764694731
walk 937348771
walk 615035149
walk 567942233
walk 90276861
wa...

result:

ok OK, guesses=6903

Test #7:

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

input:

83900602
546891761
337491243
196855675
428464691
343363875
315308465
228026062
718632196
257335008
35752163
332704882
535874085
838863987
265305541
483140565
384328844
547531730
942339923
735594546
155599793
551364717
709623449
42124887
51637479
947189520
689000350
533830115
102495433
636231049
6768...

output:

walk 305168648
walk 241723112
walk 500162279
walk 448655728
walk 768114488
walk 782782288
walk 28596018
walk 384536347
walk 258893287
walk 711732239
walk 918889469
walk 737058353
walk 68939413
walk 683612317
walk 582693251
walk 754364464
walk 825654585
walk 545955443
walk 394808193
walk 793254623
wa...

result:

ok OK, guesses=6743

Test #8:

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

input:

646001419
744530898
361512435
77794923
916144886
415352877
494550905
947506301
868867613
568408918
325500062
35056590
508253484
76663322
645952704
923198698
695357508
500990865
247483161
801340133
562549018
55487847
291959046
532432264
787327857
804280242
195467053
108223224
474749351
689022963
4787...

output:

walk 236184399
walk 285896542
walk 263306976
walk 561729648
walk 716192889
walk 108849630
walk 570119411
walk 488622462
walk 660184770
walk 152750704
walk 696850617
walk 568625897
walk 852870684
walk 178323510
walk 930062710
walk 308246866
walk 731900996
walk 529020397
walk 906143003
walk 900943639
...

result:

ok OK, guesses=6918

Test #9:

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

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 60422428
walk 62374739
walk 452331660
walk 105559241
walk 249402607
walk 204746069
walk 200743369
walk 685580774
walk 288607907
walk 6440011
walk 274431920
walk 819619863
walk 809699024
walk 244923814
walk 291496431
walk 571745419
walk 533641583
walk 797915658
walk 971832350
walk 21959319
walk ...

result:

ok OK, guesses=3334

Test #10:

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

input:

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

output:

walk 215270778
walk 920582694
walk 808791596
walk 8056612
walk 762027970
walk 934219201
walk 145540208
walk 16786598
walk 1493147
walk 117916137
walk 383606886
walk 481172395
walk 55775513
walk 389824300
walk 902409164
walk 661980677
walk 641454149
walk 974678268
walk 340481489
walk 908678708
walk 1...

result:

ok OK, guesses=3343

Test #11:

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

input:

517
78
579
695
332
509
38
736
943
576
158
834
526
759
610
104
32
297
207
865
964
439
303
764
480
688
620
533
525
482
450
680
707
676
934
997
902
485
68
352
931
630
416
626
859
116
523
28
631
103
497
815
437
983
716
225
510
334
368
765
825
246
386
197
998
196
201
138
202
478
957
234
480
408
369
495
2...

output:

walk 467375960
walk 552622015
walk 141929375
walk 610790014
walk 153884725
walk 79814979
walk 823435514
walk 613494912
walk 84308415
walk 860331948
walk 943906748
walk 566994819
walk 866753321
walk 9552065
walk 145647395
walk 796485444
walk 369769783
walk 314982895
walk 76326942
walk 509986132
walk ...

result:

ok OK, guesses=4333

Test #12:

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

input:

6637
6564
5300
5862
8215
7079
5493
3971
2283
7507
1058
5360
1296
286
2460
4897
7758
8383
6761
1976
4395
33
1797
7078
6998
1889
2889
6960
2256
425
2476
6473
3222
3633
6565
5829
6526
9962
9494
5758
989
2024
8469
2251
3486
3188
1950
5416
2222
6713
6335
5815
9380
296
2777
2533
5794
1077
9234
5323
3890
9...

output:

walk 172305450
walk 942688935
walk 364508209
walk 867281174
walk 980463816
walk 234155080
walk 190981956
walk 993507104
walk 586257443
walk 707325983
walk 614457627
walk 399164221
walk 106217365
walk 320663896
walk 315626090
walk 561806565
walk 331236196
walk 873597265
walk 133933697
walk 302056197
...

result:

ok OK, guesses=6667

Test #13:

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

input:

47129
58815
50751
87127
99668
98407
14919
15117
41790
11171
27388
75980
95990
3635
72021
15556
67946
70935
54714
41124
2623
90980
50656
17289
4557
87807
92621
48934
8703
74488
76231
29538
230
77853
83234
37112
91105
14308
68490
68122
61604
90641
13874
38527
80502
78861
14694
53925
92051
1686
56980
7...

output:

walk 246826471
walk 743029262
walk 247270994
walk 21799259
walk 701377252
walk 622807649
walk 811824
walk 404263720
walk 928508162
walk 888735247
walk 672367318
walk 75872957
walk 304513509
walk 524688496
walk 560723439
walk 387765360
walk 422554500
walk 425639294
walk 935176552
walk 162409901
walk ...

result:

ok OK, guesses=6667

Test #14:

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

input:

789076
434687
540392
995029
980103
619275
267050
254017
216793
223394
900227
779976
73866
890242
146556
308381
429520
495529
782264
282776
164526
458160
92995
526044
100665
118217
798300
918035
303039
614521
560371
977305
783886
335039
403896
162477
769557
973428
70961
808661
52778
863749
48033
2751...

output:

walk 542622882
walk 926299406
walk 940422893
walk 6510676
walk 676391385
walk 899191236
walk 922155697
walk 268080986
walk 144484945
walk 383744139
walk 707001755
walk 92409875
walk 848701552
walk 518410683
walk 708677602
walk 40700093
walk 815819433
walk 396290277
walk 250840134
walk 959448220
walk...

result:

ok OK, guesses=6667

Test #15:

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

input:

1410774
9340666
7451383
9218885
8907278
2068428
5502862
7154299
7060140
5021667
5219978
2227179
4448175
3967328
2115138
136199
7840206
4696657
5407496
171686
6685943
8661923
5348955
6986696
6148527
4395036
9244896
3145001
8090881
6844387
3605000
3635903
8214862
8762157
7954214
7923658
6787570
538963...

output:

walk 279140255
walk 592265076
walk 276120082
walk 68257712
walk 884226411
walk 26678716
walk 128777040
walk 169469228
walk 675250268
walk 588691563
walk 209321997
walk 974288515
walk 489027011
walk 530434981
walk 101659809
walk 15821093
walk 24379859
walk 158086575
walk 75746840
walk 31548976
walk 5...

result:

ok OK, guesses=6667

Test #16:

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

input:

76746556
46517371
55035706
59947717
28719807
15888679
1606630
72641513
63361966
21461685
29763544
97554116
37762099
45373024
27255141
4606697
95904242
70379829
87165357
39226370
59253233
84590950
46694157
615966
95508563
92967620
86039257
53504585
90473482
9597752
71634750
15673160
32058255
57868179...

output:

walk 719145017
walk 64653204
walk 767624652
walk 488577010
walk 98728456
walk 296295974
walk 804646415
walk 524910656
walk 748361231
walk 845355293
walk 138981877
walk 128876153
walk 156980617
walk 220118259
walk 189748580
walk 4107854
walk 985869151
walk 322742984
walk 742007597
walk 363320076
walk...

result:

ok OK, guesses=6672

Test #17:

score: 0
Accepted
time: 23ms
memory: 3868kb

input:

443693947
379633358
696557700
776055953
46673989
538023604
948259335
197526086
269523163
8243859
993057169
172125942
944155869
170157756
679599862
206596769
386371210
721630885
836772713
798482627
698787034
917347335
458134691
498679585
143827311
647047150
816218060
452039906
2361237
870033772
26586...

output:

walk 640180441
walk 783750317
walk 944467539
walk 918800065
walk 517797972
walk 132726940
walk 231705671
walk 188731236
walk 857537541
walk 359874622
walk 552204613
walk 565967952
walk 619855348
walk 38896079
walk 234326779
walk 805192925
walk 562420344
walk 91645869
walk 719077661
walk 181581939
wa...

result:

ok OK, guesses=6684

Test #18:

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

input:

618758793
40866241
369178855
809437929
100598437
840253094
445256607
194707262
176286443
154501679
14340695
321313266
683046089
730209155
556592816
397003649
151737949
35642932
469097283
628884164
410766740
627566904
426887733
525280769
682173651
507905942
552625776
501756519
163794404
575873559
902...

output:

walk 925010770
walk 191667628
walk 69766536
walk 663201734
walk 961526893
walk 917266871
walk 824341004
walk 679696555
walk 100179399
walk 382674664
walk 416754618
walk 178257193
walk 117064196
walk 104196708
walk 812365094
walk 100803549
walk 332976462
walk 897474268
walk 111277095
walk 797451631
w...

result:

ok OK, guesses=7260

Test #19:

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

input:

238933789
80499438
62500350
143683250
158886298
186519402
66482470
249160452
36550111
243396563
165854529
93458760
164906423
124097589
156531280
249529162
87216491
242976457
140020034
263917455
46612204
258217967
190783143
121291978
246750548
269748
149633670
61122178
205959894
102717984
101679613
7...

output:

walk 120868430
walk 373400407
walk 376255394
walk 172440288
walk 717666902
walk 388487400
walk 186208250
walk 624802343
walk 203002163
walk 393959549
walk 241398607
walk 623421736
walk 458585914
walk 598645347
walk 194058588
walk 331472280
walk 385632213
walk 146890776
walk 443365184
walk 222978367
...

result:

ok OK, guesses=6674

Test #20:

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

input:

37301697
341169765
17684415
98712832
303615454
58441678
143825488
91133260
384988299
160573804
93436905
11376178
21963633
222755972
155634081
126513032
263254652
216029736
345641077
142222711
54404668
301540889
362302814
251104294
327965441
152634509
215776982
96844575
122819962
55686544
148738307
4...

output:

walk 559043212
walk 659985668
walk 779340991
walk 747297567
walk 272245239
walk 445421787
walk 788998686
walk 118330264
walk 756815882
walk 16768560
walk 574926703
walk 299086455
walk 422185117
walk 718386108
walk 133996814
walk 900959033
walk 119615465
walk 681815594
walk 359079875
walk 608795888
w...

result:

ok OK, guesses=6677

Test #21:

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

input:

103388364
52984130
32713077
7843857
111028034
16788333
124468653
10244168
79193681
8416777
130001144
82131492
88032889
23319077
48056184
36841276
138138849
46859875
70320398
141423863
31588093
90259525
134265587
141981044
25965310
4733660
60732086
40407890
61688470
62484481
59076197
134537072
948106...

output:

walk 990311197
walk 896423993
walk 232039281
walk 907331655
walk 523267141
walk 653086458
walk 497018611
walk 455758457
walk 742312877
walk 411396309
walk 337286492
walk 406500704
walk 209236647
walk 266342302
walk 94286851
walk 984604343
walk 344634676
walk 572059809
walk 780909544
walk 142694827
w...

result:

ok OK, guesses=6669

Test #22:

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

input:

249039131
273707293
33339142
232748218
203118176
118455473
323282069
193155918
300356792
65487693
46971446
152421687
146052413
268371940
24173475
297008240
20441356
328343663
13514253
157021404
85048127
185698990
80715844
301958580
110422388
302315173
57044726
210061815
114721692
129838113
71525879
...

output:

walk 92733526
walk 320328596
walk 153992059
walk 127195460
walk 406411392
walk 364718044
walk 152186297
walk 484033386
walk 749196877
walk 226702165
walk 410666581
walk 940738584
walk 545329813
walk 84578508
walk 288607807
walk 621561286
walk 779423400
walk 375893211
walk 69456720
walk 345934892
wal...

result:

ok OK, guesses=6694

Test #23:

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

input:

922915868
622397990
408624757
53743017
417472791
83250302
618197514
672842275
183179096
925559377
363920302
905853494
303974745
546454002
342011596
364201043
829462745
702094569
371770606
461002796
984177471
927653394
614351815
351570527
940536541
519592442
245290231
36149404
756037450
26484209
4985...

output:

walk 705394234
walk 974447844
walk 45560486
walk 409354841
walk 442576690
walk 858816915
walk 298472843
walk 958689004
walk 897357653
walk 120635492
walk 53966339
walk 294981748
walk 180323797
walk 39482921
walk 159737595
walk 66374609
walk 540451668
walk 996942329
walk 90811795
walk 496413674
walk ...

result:

ok OK, guesses=6825

Test #24:

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

input:

21759754
748391706
402647639
938167287
737574890
746724006
37157273
599026981
465514413
315746583
469105613
437060823
845315077
686106452
368685347
640131321
558826666
210684380
841924427
708428255
230735068
832018426
799890673
264211747
217005930
16872498
273108097
335405478
559888439
318986443
672...

output:

walk 162083872
walk 474736828
walk 312704474
walk 540683480
walk 422769122
walk 362179272
walk 469804473
walk 14803133
walk 826389071
walk 611851982
walk 335211242
walk 639800828
walk 494874532
walk 331609693
walk 16131233
walk 171208678
walk 851172763
walk 133969434
walk 134723619
walk 248164439
wa...

result:

ok OK, guesses=6741

Test #25:

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

input:

612065930
241244108
559091872
678256379
743658097
502580657
446824974
92869080
160604960
549358134
199654508
114466398
534478742
251791047
737135697
439799679
635823674
213286149
167432366
246828648
469991798
404078999
243766145
228461212
655435493
607615969
11530664
601796849
682869980
365064935
62...

output:

walk 812807119
walk 640058091
walk 805000746
walk 20954582
walk 989138168
walk 926314438
walk 845898667
walk 613786714
walk 884179531
walk 179501535
walk 256335555
walk 16665439
walk 495537036
walk 279358070
walk 417194119
walk 53407811
walk 950140288
walk 739907605
walk 328865063
walk 472008001
wal...

result:

ok OK, guesses=6802

Test #26:

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

input:

115093919
90645442
106156561
15622965
92733286
107197443
116753571
66336721
76139065
46915223
40438389
89637952
63973717
107120563
20754987
89627355
19569502
21125048
63801486
49852009
12851871
104321295
77054672
88493932
111154733
81700158
53596155
14693407
110385313
119996844
92887238
107183788
90...

output:

walk 639365514
walk 211040711
walk 449527544
walk 582388528
walk 826380997
walk 291459221
walk 368715563
walk 909039967
walk 359566546
walk 28927942
walk 221044927
walk 118051020
walk 598689915
walk 82833358
walk 570044803
walk 273078190
walk 226909186
walk 437311185
walk 555744960
walk 288424194
wa...

result:

ok OK, guesses=6675

Test #27:

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

input:

687072108
374561825
634440246
430906799
379376607
415279988
32400913
895174372
869734805
463965229
723736168
687690415
285636680
485485035
235757652
185482607
90524904
278292114
871331742
432826084
131923874
521467149
302990510
153524831
718070260
367003764
860433017
483894380
200342422
372825063
50...

output:

walk 27546393
walk 831310332
walk 354028456
walk 209786698
walk 590553138
walk 912491366
walk 835125020
walk 823725289
walk 780443483
walk 850731999
walk 82620084
walk 565239337
walk 494365495
walk 265429605
walk 464093242
walk 189709595
walk 683967612
walk 890348390
walk 774112758
walk 539493917
wa...

result:

ok OK, guesses=6781

Test #28:

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

input:

89756287
202658887
663868748
284615333
141131827
153348295
313999982
377332127
42472888
124900849
168744686
651774433
596893465
697701310
116481366
304627207
753995288
477418512
474252428
197841792
326683988
52384445
516507519
112336809
236667490
75127246
152853762
802775720
654404096
801047284
2007...

output:

walk 447757431
walk 124326047
walk 679134414
walk 877282071
walk 577183242
walk 414527751
walk 679545151
walk 750612928
walk 103247283
walk 208218834
walk 414673077
walk 475779119
walk 143936847
walk 995657905
walk 539593091
walk 178362287
walk 75480959
walk 814433619
walk 177706400
walk 649234591
w...

result:

ok OK, guesses=6715

Test #29:

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

input:

160181321
297132413
849867577
990401605
401226509
545340200
624834970
413008479
472248849
272851314
453746639
654797176
77167375
48167699
387011059
351561839
292637366
531299218
211202387
783942843
362856829
874371798
127331563
387914095
791410714
332501883
393774863
759842697
221092687
590173653
90...

output:

walk 252545778
walk 269316181
walk 685627536
walk 673234825
walk 891153406
walk 649835908
walk 350846424
walk 508334236
walk 101200365
walk 976832089
walk 272031404
walk 841528625
walk 631048055
walk 44345742
walk 925119240
walk 921742374
walk 89490340
walk 175360101
walk 207852412
walk 39006977
wal...

result:

ok OK, guesses=6668

Test #30:

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

input:

649798062
684366397
786382821
168341576
169321804
136723639
817524790
231413809
482250939
188959653
193762040
176368671
21005605
190790411
429973739
167449107
477432918
679764520
574272481
346113277
186719976
368086942
801852659
145061168
783316044
508662958
201298348
428750956
351713040
792695491
3...

output:

walk 855416613
walk 137051022
walk 330527670
walk 811653617
walk 9260
walk 286356807
walk 333991959
walk 10290006
walk 794229461
walk 2650222
walk 27049678
walk 899069636
walk 110597116
walk 608412990
walk 51110061
walk 54825234
walk 139364682
walk 792419888
walk 585286019
walk 543408829
walk 277844...

result:

ok OK, guesses=6690

Test #31:

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

input:

520495184
248841010
828708298
247655005
298544626
341721673
627599920
450003140
464581318
791542889
786928187
471358199
602911100
704404268
133982665
558502426
485141211
338461086
342335220
407476149
590285878
775376351
384506253
748953724
806777558
850031787
202653028
828084121
525191152
342449841
...

output:

walk 234524218
walk 587584520
walk 579867288
walk 278185401
walk 50889621
walk 902415741
walk 285878247
walk 681641914
walk 873816872
walk 326961571
walk 854623992
walk 543668706
walk 990791595
walk 960731862
walk 288817091
walk 424519761
walk 785877479
walk 712558569
walk 863112828
walk 65140929
wa...

result:

ok OK, guesses=6721

Test #32:

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

input:

765593078
45239834
856847273
97412399
819130986
919012605
3650297
924589542
381854129
465660771
474353810
402558390
114118198
902078184
837337869
433886193
733261543
765192732
150702019
119660276
403201031
645715050
525772628
625797869
280170730
314715359
85881410
257692256
648011358
902593908
28643...

output:

walk 422217682
walk 208365114
walk 811055718
walk 388036086
walk 969186022
walk 53723088
walk 883160069
walk 289034278
walk 886296083
walk 719426332
walk 241954742
walk 143714380
walk 601035475
walk 583963730
walk 95882286
walk 910395669
walk 16801237
walk 231659162
walk 497900653
walk 820836070
wal...

result:

ok OK, guesses=6692

Test #33:

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

input:

160876290
487242035
203521983
260012000
619747546
872411253
573912819
140260363
65568370
102057117
71475419
84073102
774448329
172308784
775922640
327325168
282934561
299884846
33735958
252985665
4707800
679695692
563585623
711489631
851854196
204336992
802495117
250705519
444045205
588582171
788735...

output:

walk 160876289
walk 326365745
walk 664638273
walk 56490017
walk 359735546
walk 252663707
walk 649859891
walk 514705869
walk 873666332
walk 984847072
walk 917776627
walk 960956008
walk 690375227
walk 346218780
walk 603613856
walk 499760853
walk 903967718
walk 16950285
walk 682209437
walk 219249707
wa...

result:

ok OK, guesses=6780

Test #34:

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

input:

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

output:

walk 957713897
walk 525643331
walk 811412710
walk 815589557
walk 400814543
walk 785196296
walk 74186348
walk 932429124
walk 699631027
walk 850448496
walk 808856677
walk 112633127
walk 878196136
walk 866015236
walk 459794269
walk 671273822
walk 960400662
walk 753746629
walk 627324300
walk 461163522
w...

result:

ok OK, guesses=3335

Test #35:

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

input:

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

output:

walk 223449589
walk 209104093
walk 22129988
walk 165692919
walk 486274831
walk 844409761
walk 384895255
walk 982314475
walk 385731150
walk 959305447
walk 798205314
walk 656884166
walk 817405140
walk 609568646
walk 449698982
walk 804995860
walk 766233800
walk 652066078
walk 557269809
walk 435222798
w...

result:

ok OK, guesses=3336

Test #36:

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

input:

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

output:

walk 223567535
walk 480528278
walk 948522928
walk 812315766
walk 954021712
walk 534518342
walk 507582528
walk 193785528
walk 906842026
walk 117092231
walk 74301627
walk 610848201
walk 944518711
walk 984506299
walk 766851348
walk 30882845
walk 769183279
walk 914107792
walk 978197556
walk 802948922
wa...

result:

ok OK, guesses=3337

Test #37:

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

input:

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

output:

walk 816121170
walk 46698354
walk 296208058
walk 184534891
walk 910276058
walk 583966717
walk 483216398
walk 624547583
walk 993410793
walk 129465018
walk 13249491
walk 157691691
walk 682046436
walk 723614961
walk 645158751
walk 209729878
walk 686826686
walk 842216845
walk 622139085
walk 217660977
wa...

result:

ok OK, guesses=3338

Test #38:

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

input:

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

output:

walk 735381700
walk 740493344
walk 655472573
walk 99142453
walk 568893507
walk 584242745
walk 116324949
walk 731486261
walk 727441283
walk 440418810
walk 205330679
walk 139260601
walk 113823374
walk 724806199
walk 122383110
walk 202192406
walk 128247562
walk 247467693
walk 539117279
walk 385579714
w...

result:

ok OK, guesses=3339

Test #39:

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

input:

781
173
1437
661
751
791
1545
688
1471
1051
731
1994
2306
359
632
2608
970
2282
741
1108
190
2671
2571
10
2894
78
297
1439
2572
103
2703
2736
1182
968
433
503
2691
793
1040
641
439
417
2956
745
2710
297
799
1403
635
1312
1939
2626
880
649
2923
1342
1544
2082
1337
254
2861
272
2872
1909
2594
2297
259...

output:

walk 546964093
walk 941698300
walk 310904691
walk 8158173
walk 392347990
walk 847193842
walk 133190453
walk 227940149
walk 59662765
walk 19198810
walk 762341848
walk 253288711
walk 220352970
walk 82141201
walk 333424088
walk 140036347
walk 101230072
walk 763510326
walk 341256123
walk 255482257
walk ...

result:

ok OK, guesses=6333

Test #40:

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

input:

1210
146
803
125
1314
935
853
1585
767
1579
735
1320
273
1156
91
949
656
1062
605
1736
1280
209
32
1101
1982
382
1543
463
1397
1382
1452
241
1405
1244
1893
1244
773
158
1429
147
1026
734
1536
528
1822
1470
1869
247
755
408
163
901
1858
595
589
1557
438
1891
1458
11
1689
1905
31
1782
1236
1912
167
18...

output:

walk 552300757
walk 816291459
walk 489253073
walk 434804873
walk 421894709
walk 496722701
walk 99122074
walk 913053255
walk 220560232
walk 597546715
walk 679740706
walk 145359938
walk 579072488
walk 166405016
walk 392136574
walk 6579174
walk 121343283
walk 53972083
walk 694943664
walk 176643430
walk...

result:

ok OK, guesses=5333

Test #41:

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

input:

1569
363
1960
3692
314
3775
1356
620
3268
929
1019
856
2093
3853
1250
551
2884
1131
430
173
909
2243
125
3490
3023
3643
3946
2732
2386
23
1539
1007
2227
3579
362
2894
3268
3622
3216
2337
1409
2835
3905
3236
3315
1822
2762
2312
1257
439
3941
2730
1375
326
1557
581
1504
3820
1913
554
3205
2215
223
250...

output:

walk 54154142
walk 293125031
walk 833970922
walk 115468270
walk 708041600
walk 988131880
walk 168121825
walk 254601579
walk 780180765
walk 893548366
walk 804523789
walk 988185310
walk 910039455
walk 21041005
walk 95206339
walk 286912977
walk 846173593
walk 209497822
walk 224003158
walk 549924554
wal...

result:

ok OK, guesses=6667

Test #42:

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

input:

138
1054
6008
1339
6
5035
1378
5278
223
1659
6193
6067
157
678
4985
3536
5895
1573
2100
2391
881
1425
1611
5393
213
2613
2619
1887
1309
6572
4076
5977
4786
2813
742
3462
5656
1783
2319
968
6094
5967
5235
366
5984
4849
6575
1005
1288
1946
5406
1047
1357
3128
5561
6536
4765
2193
3374
5016
5343
1850
24...

output:

walk 631650594
walk 279958969
walk 586092529
walk 849305333
walk 756382752
walk 587024168
walk 561146039
walk 463386326
walk 452786186
walk 131871182
walk 412565912
walk 545418725
walk 231304978
walk 567187469
walk 129789704
walk 257241467
walk 971130294
walk 400669949
walk 368588674
walk 375947118
...

result:

ok OK, guesses=6667

Test #43:

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

input:

6571
233
2123
5950
2050
374
4022
2079
3725
1906
3491
606
2601
4335
2360
297
4892
5891
4733
3134
3795
893
1337
4856
6113
3539
2838
1138
2635
16
1138
652
3659
4520
3600
1218
6435
4536
5101
6248
3133
5349
1781
5100
1589
4298
6093
960
5467
5911
1724
1251
2805
5656
2222
2516
6218
4540
5526
4712
2658
4108...

output:

walk 843697725
walk 316138296
walk 400976860
walk 955379640
walk 75580189
walk 530126469
walk 208068955
walk 408315100
walk 77554869
walk 21572796
walk 355175223
walk 342498002
walk 388095479
walk 1807273
walk 912645876
walk 933377693
walk 731676472
walk 275184479
walk 865509389
walk 486397947
walk ...

result:

ok OK, guesses=6667

Test #44:

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

input:

1876439
1690499
1297788
3960268
7490432
8230426
7503141
339742
6097943
1906972
3809130
5044410
4383391
3127123
3515339
6886009
790763
524341
6766118
648627
1356995
4349563
1045241
2610781
8956343
3195492
3291897
3259397
8848142
3064246
3204591
5499123
4274607
7263176
6471921
849032
5113129
3133071
3...

output:

walk 761147010
walk 428241018
walk 552784060
walk 474506659
walk 389776318
walk 43163272
walk 849275089
walk 76441895
walk 27169265
walk 679904121
walk 926942138
walk 30923541
walk 616027579
walk 581604539
walk 939008377
walk 252992278
walk 373918627
walk 991779133
walk 100601195
walk 651204639
walk...

result:

ok OK, guesses=6667

Test #45:

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

input:

2945887
9617158
8416984
10472112
3932638
10770436
6976643
3724055
2093138
364133
7464590
2102224
10923701
2058760
6666487
11021012
3238886
7023003
2585659
8914434
9686724
4926153
2667042
4730564
5639206
4234987
1161463
10022414
4677672
6406952
5480573
9364621
3528245
2863033
5482554
812696
7960893
1...

output:

walk 458685283
walk 590822462
walk 702898604
walk 800397636
walk 213152052
walk 618113902
walk 118732164
walk 226342793
walk 85574494
walk 603248723
walk 575341645
walk 419196507
walk 820730603
walk 925475054
walk 294910757
walk 782851248
walk 193119059
walk 590813693
walk 903719865
walk 362673156
w...

result:

ok OK, guesses=6668

Test #46:

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

input:

19191524
1194298
15434436
14358502
2167907
18375499
17162487
6267560
19049183
5514234
15325525
17913419
15886678
4921474
18897196
16720176
15132033
17779426
3286696
19013812
10702265
12288556
12328077
2764087
14503054
15848116
6782049
5583380
18489962
16696437
8245071
11190930
11921623
7358936
15126...

output:

walk 33214218
walk 709502319
walk 106188352
walk 901715421
walk 486024740
walk 986866723
walk 933471855
walk 343373514
walk 134705695
walk 358425817
walk 742412815
walk 828058330
walk 15425465
walk 939567832
walk 410733958
walk 234184227
walk 706106652
walk 99357922
walk 757183711
walk 658192949
wal...

result:

ok OK, guesses=6668

Test #47:

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

input:

270774
379715
798099
734935
182147
140828
207400
26826
107934
552929
203490
555070
519711
622055
267724
417002
114996
493983
627063
473419
324163
99969
123205
56115
616418
377098
711800
790193
784555
420519
311615
750722
778882
31955
369222
209509
575269
715202
294750
520869
201193
415146
466021
444...

output:

walk 239289977
walk 586152170
walk 778190064
walk 257669650
walk 672892267
walk 660360162
walk 871248761
walk 624733035
walk 923222491
walk 270301745
walk 202284389
walk 560120605
walk 899578369
walk 274182637
walk 292895961
walk 809489044
walk 537153042
walk 685082058
walk 798141965
walk 311885274
...

result:

ok OK, guesses=6667

Test #48:

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

input:

44401730
55985514
42954741
8170243
28571777
51594902
34514678
52489096
47429276
38908443
55699386
20790978
54069552
47223524
29462760
30046874
46560818
55960576
50475952
35592626
41454151
49481390
39602784
35529391
42419689
14167875
37232544
45485928
43804543
22261386
55714366
39053994
37456134
3267...

output:

walk 202182379
walk 875796685
walk 590289297
walk 915184163
walk 570175922
walk 370965693
walk 271872743
walk 639644456
walk 171461819
walk 349520918
walk 326850493
walk 870774098
walk 976391055
walk 511629316
walk 934459066
walk 911167261
walk 516497290
walk 233624378
walk 574836867
walk 423703824
...

result:

ok OK, guesses=6670

Test #49:

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

input:

213091095
59624480
224641920
27432536
210909328
949720
185933699
226686182
40114439
91671811
207230052
49483611
218715877
109467936
219752670
1687386
95226112
127005652
33677113
1030543
4368760
102251269
163640554
165785790
11896688
137522634
409581
94904896
39623051
218531582
38616497
69962612
9292...

output:

walk 551401094
walk 978197175
walk 842153146
walk 275716648
walk 814929876
walk 820258479
walk 248075147
walk 133244212
walk 552903003
walk 104176676
walk 262187217
walk 219416265
walk 52751530
walk 636736027
walk 389251444
walk 114556960
walk 116165008
walk 711457766
walk 416929792
walk 283130941
w...

result:

ok OK, guesses=6674

Test #50:

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

input:

353157087
129919940
378468321
473602304
416618690
84168917
90150991
63628071
238074821
222235551
70613722
210770252
354540071
257855138
412670005
440819225
381455883
501549876
171596576
403363374
63432577
273812698
7119338
256361828
52548456
54345196
105984864
291644443
396200147
360647145
238392334...

output:

walk 356204067
walk 739956032
walk 208140397
walk 681026173
walk 241036126
walk 899137960
walk 35758740
walk 440380990
walk 523605085
walk 344156816
walk 576138516
walk 397401966
walk 169160309
walk 255976952
walk 16568368
walk 323658254
walk 9632200
walk 895768206
walk 29409160
walk 118285521
walk ...

result:

ok OK, guesses=6743

Test #51:

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

input:

237617727
848974010
314807514
267851195
772788329
68846027
383940179
456540129
490186278
516600978
113995055
167782933
340414265
232680859
692648253
922848749
591144136
637840655
520877924
97947909
542441254
557888986
700701075
109833693
198386125
281600665
862073873
10236924
85574849
897278955
9077...

output:

walk 237617726
walk 611356283
walk 389411739
walk 876621916
walk 504937134
walk 219635933
walk 315094152
walk 72599950
walk 957224384
walk 949992935
walk 520972312
walk 53787878
walk 172631332
walk 815844829
walk 459967394
walk 230200496
walk 591873622
walk 46696519
walk 806615504
walk 500648220
wal...

result:

ok OK, guesses=6885

Test #52:

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

input:

192530414
29499848
137994408
178868791
71281462
107722169
100438516
85382098
131561787
190728911
93410139
174181240
175830810
23736804
84921726
149444466
27931517
166119532
130011047
154167803
137389914
115794094
179128801
136412692
163856703
136184714
10905837
3931277
69617556
63661240
184039189
18...

output:

walk 276487989
walk 610002606
walk 301752853
walk 40874383
walk 472187550
walk 36440707
walk 572491226
walk 564718461
walk 625954568
walk 59167124
walk 95939521
walk 660545980
walk 388166156
walk 620939166
walk 640959801
walk 257781033
walk 265003637
walk 138188015
walk 736924687
walk 24156756
walk ...

result:

ok OK, guesses=6668

Test #53:

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

input:

180033199
48189736
175802631
29436834
155241350
176283991
67835426
190934176
148555454
148795494
153338618
19489184
178792214
16729032
48062648
28221523
210048204
24513095
232179705
72329703
43309434
34184513
37584151
170829942
124593712
213773795
105230729
140612795
153088852
77447176
148782019
172...

output:

walk 558201870
walk 377387187
walk 242093904
walk 814772994
walk 464074039
walk 398381037
walk 715907422
walk 624200777
walk 497094073
walk 497791977
walk 481060390
walk 230315810
walk 912529220
walk 71026994
walk 294272332
walk 466776030
walk 54834805
walk 966097083
walk 833833970
walk 167795975
wa...

result:

ok OK, guesses=6667