QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#745155#5309. Guess Cycle LengthAPLSAC ✓19ms3940kbC++14605b2024-11-14 07:43:532024-11-14 07:43:54

详细

Test #1:

score: 100
Accepted
time: 9ms
memory: 3856kb

input:

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

output:

walk 682942978
walk 885817342
walk 749458891
walk 720328315
walk 197434634
walk 29116001
walk 955719860
walk 753714211
walk 392192441
walk 355905365
walk 679121891
walk 699849990
walk 406069590
walk 396257550
walk 629644280
walk 758977876
walk 716270610
walk 183472383
walk 50255091
walk 906558370
wa...

result:

ok OK, guesses=10000

Test #2:

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

input:

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

output:

walk 191746555
walk 581091576
walk 503178054
walk 137605881
walk 564060905
walk 274347870
walk 362328711
walk 273239881
walk 353332099
walk 467096134
walk 621926816
walk 520635088
walk 357074141
walk 121734212
walk 368935185
walk 891355632
walk 819792576
walk 504761977
walk 109809023
walk 924561275
...

result:

ok OK, guesses=10000

Test #3:

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

input:

7395
7208
4567
8051
7196
4563
1099
3213
2654
1822
9217
1200
272
7982
3618
9122
581
3766
7542
4139
7464
3982
7971
1478
8740
7011
8771
1472
7653
8893
2048
2023
2225
1560
9024
5805
2169
3001
6443
9151
5566
8392
6019
9267
4944
8499
5525
6667
1686
8267
8310
4061
9915
1563
5003
5572
8482
3296
7130
509
748...

output:

walk 206377394
walk 642909813
walk 917337359
walk 53463484
walk 452659145
walk 443907367
walk 953056536
walk 492492114
walk 166599441
walk 249269168
walk 85007395
walk 625421983
walk 178609072
walk 495307710
walk 394935636
walk 542455504
walk 435761459
walk 339903185
walk 930813776
walk 177616597
wa...

result:

ok OK, guesses=10000

Test #4:

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

input:

300625696
376005419
715419344
548397229
258098605
658594178
59900232
806705233
21478558
981267772
10053763
595413016
735044075
4441375
525929635
846630501
566958552
516553413
31425868
487917830
495122535
386166316
685182279
679349786
610872090
334202226
369614098
480379267
143239832
873438685
305416...

output:

walk 300625695
walk 75379723
walk 339413925
walk 832977885
walk 709701376
walk 400495573
walk 401306054
walk 746805001
walk 214773325
walk 959789214
walk 28785991
walk 585359253
walk 139631059
walk 269397300
walk 521488260
walk 320700866
walk 720328051
walk 949594861
walk 514872455
walk 456491962
wa...

result:

ok OK, guesses=10000

Test #5:

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

input:

53301429
647299372
428314266
19060321
413766296
779731617
948371733
492322663
346440001
100102527
767575056
919525610
538023809
436397075
446305152
719431484
791974011
360673854
580871890
390946395
929110216
454173724
287430976
314151980
836234021
47894411
413541989
139570095
661349963
356437910
450...

output:

walk 51381618
walk 593997943
walk 781014894
walk 590746055
walk 394705975
walk 365965321
walk 168640116
walk 543950930
walk 854117338
walk 753662526
walk 667472529
walk 151950554
walk 618498199
walk 898373266
walk 9908077
walk 273126332
walk 72542527
walk 568699843
walk 220198036
walk 810074505
walk...

result:

ok OK, guesses=10000

Test #6:

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

input:

970393698
12313777
708405145
238545218
1955500
806399809
578798168
770757641
212585332
947125837
310170725
828232961
816168699
765202858
743893999
232488366
406134144
300115746
203571092
60568102
603570202
974343955
765345891
76337505
41149169
845088384
695902523
130384282
678720296
459052783
742368...

output:

walk 31506761
walk 729501927
walk 122060584
walk 92599249
walk 386175866
walk 696949917
walk 115107567
walk 441991449
walk 675786083
walk 684712065
walk 984848344
walk 415004668
walk 610464394
walk 321552967
walk 374505933
walk 598272471
walk 70778914
walk 598375026
walk 714396098
walk 535932130
wal...

result:

ok OK, guesses=10000

Test #7:

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

input:

400845646
763320580
279314394
714291075
777524513
994391108
309202368
327454033
355507607
593263613
237078584
557369075
31441128
738157164
68622182
712428794
415053840
861684713
620145637
715493096
374068827
995101707
906083893
77839308
956401325
731838710
608266202
760144335
986437687
261050224
432...

output:

walk 18092700
walk 745227879
walk 342959909
walk 608010586
walk 63233438
walk 216866595
walk 85195183
walk 16154799
walk 971422146
walk 526100377
walk 823099278
walk 141006184
walk 829553704
walk 351234385
walk 578995753
walk 395275877
walk 531726057
walk 617529862
walk 758460924
walk 95347459
walk ...

result:

ok OK, guesses=10000

Test #8:

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

input:

934539761
534202283
343838837
454818099
326446893
155389770
531320235
51682333
954388674
955028470
675204755
939419364
847294819
763948141
838640088
648152742
900793506
429872923
131892307
475226807
396421761
236210728
72065334
507989497
805515782
215633282
583969165
749869253
734879006
388202773
65...

output:

walk 674174410
walk 810898802
walk 489302356
walk 711639005
walk 463209038
walk 241977845
walk 851345996
walk 210236425
walk 12399435
walk 506308404
walk 762154467
walk 512107985
walk 528722118
walk 173776317
walk 82581080
walk 98201978
walk 427388000
walk 248450074
walk 748997281
walk 230385499
wal...

result:

ok OK, guesses=10000

Test #9:

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

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 308088897
walk 192054628
walk 748034731
walk 805048550
walk 578090694
walk 947086865
walk 310083314
walk 601364388
walk 823737553
walk 414987381
walk 142003488
walk 936582497
walk 817019237
walk 804171863
walk 716874719
walk 443284370
walk 127509679
walk 673929179
walk 16388278
walk 427674366
w...

result:

ok OK, guesses=10000

Test #10:

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

input:

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

output:

walk 120307574
walk 869110761
walk 205617662
walk 285261172
walk 133926972
walk 492442393
walk 27946466
walk 163210247
walk 478981464
walk 984190271
walk 257359329
walk 820677471
walk 598235294
walk 175324026
walk 73474447
walk 597171601
walk 647039424
walk 699622632
walk 727091433
walk 700665062
wa...

result:

ok OK, guesses=10000

Test #11:

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

input:

176
441
390
431
795
464
640
287
710
103
559
729
144
376
195
39
160
534
106
554
27
219
120
777
855
697
614
2
613
485
872
485
248
955
829
319
712
960
210
830
431
882
141
22
662
924
310
297
652
403
935
579
640
129
964
88
40
970
607
70
528
772
541
656
884
760
593
989
727
265
988
52
727
605
626
182
154
6...

output:

walk 371783610
walk 546820923
walk 911470850
walk 784459556
walk 158990714
walk 47721875
walk 846019534
walk 508927774
walk 141815275
walk 679000895
walk 379413779
walk 33052563
walk 719945572
walk 51202548
walk 931361790
walk 599979241
walk 825854966
walk 376806381
walk 484554655
walk 247585331
wal...

result:

ok OK, guesses=10000

Test #12:

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

input:

5108
7583
222
268
9802
1910
9823
758
8739
5252
8973
921
3112
1574
5264
4764
6213
2947
833
2681
1095
7437
574
7240
9218
2044
411
1423
6048
1372
1624
3996
5663
196
704
7042
982
2245
4898
6631
2724
6590
9040
2416
3483
7200
482
1270
9109
9957
4085
5766
377
6104
7903
3373
2427
1960
5328
6384
9628
3239
14...

output:

walk 78452995
walk 534937138
walk 199087025
walk 778552234
walk 659473654
walk 834364581
walk 572005311
walk 459024809
walk 115821214
walk 675786671
walk 272715966
walk 754226927
walk 62302930
walk 551396021
walk 716621693
walk 40193199
walk 470007451
walk 533018588
walk 669223498
walk 269025445
wal...

result:

ok OK, guesses=10000

Test #13:

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

input:

43988
57557
70068
93580
61773
94787
64589
66821
23515
40742
31021
6450
2663
13089
76624
22337
80208
9239
6992
23202
98148
91386
99641
56107
38271
15835
33622
13176
29345
78549
57321
88621
77045
35405
77591
75826
45282
57024
1500
43517
29573
67794
99767
46571
28776
74557
6849
94761
20952
13048
64057
...

output:

walk 411848486
walk 994784867
walk 741419940
walk 290704264
walk 661232053
walk 391660737
walk 537193020
walk 145055948
walk 553417199
walk 618451637
walk 99507533
walk 703251505
walk 840101352
walk 804693479
walk 654100540
walk 995600446
walk 16031796
walk 123596468
walk 899830942
walk 813318289
wa...

result:

ok OK, guesses=10000

Test #14:

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

input:

865979
565564
935726
762660
690410
182777
483006
100532
607639
667946
555931
36968
24805
649128
591791
168274
797954
150878
992932
671415
326991
25221
73592
534383
890765
236813
31206
599877
860231
900904
198481
975947
696825
972308
888651
930831
628727
347260
519461
174549
683152
113114
799707
2653...

output:

walk 553375942
walk 216946707
walk 164860903
walk 327391387
walk 152482635
walk 934518533
walk 436970064
walk 713553341
walk 707993061
walk 992210728
walk 735976356
walk 178043276
walk 272267458
walk 821756705
walk 197879466
walk 10010880
walk 257550112
walk 185075072
walk 438364730
walk 304543189
w...

result:

ok OK, guesses=10000

Test #15:

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

input:

714557
6213167
650280
4535793
1795400
5111724
5893564
540979
2531653
9140012
4414432
5188959
1820093
5043075
3381614
5936657
2286238
3829313
9918648
9714335
1104423
329469
1057339
913904
7127205
6953653
7916427
6647541
8021263
8112119
5255025
4400440
1971021
9755144
189185
8343024
7054590
5583969
96...

output:

walk 958983231
walk 429305103
walk 635685808
walk 1251574
walk 2784340
walk 39499348
walk 703812066
walk 328833900
walk 906952270
walk 424288517
walk 209686161
walk 438670028
walk 164585519
walk 829906137
walk 779592061
walk 924284629
walk 143426836
walk 370638709
walk 966464891
walk 575897012
walk ...

result:

ok OK, guesses=10000

Test #16:

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

input:

62892953
90978041
91288062
92130451
35219966
87487262
47077920
23026116
57902012
93744024
57546483
13296221
92393380
77639173
74752168
73660435
8384618
14328925
20233261
45506482
95455181
28048510
31145597
87198634
25131278
75736770
63355925
95401465
55208372
83830744
19638865
93439235
6318238
81383...

output:

walk 131700054
walk 421799339
walk 488326901
walk 421301361
walk 278457428
walk 529121972
walk 753977717
walk 987318468
walk 707740431
walk 839114197
walk 140389019
walk 845028290
walk 357595916
walk 702856138
walk 25821069
walk 884731943
walk 780894594
walk 449544342
walk 198994996
walk 389316708
w...

result:

ok OK, guesses=10000

Test #17:

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

input:

540974771
212517440
462521456
518599534
504223146
847867547
715623211
100999617
190667011
104711933
907326884
941532319
346552552
687846508
110173206
171808179
997861267
82739263
738059742
628661654
916698219
621722277
482946510
303916151
4486576
549627129
39282728
926397758
499540970
312379877
4915...

output:

walk 164479509
walk 816732436
walk 579047410
walk 653035207
walk 144323751
walk 476330980
walk 953459586
walk 345584724
walk 754565176
walk 75537866
walk 411560766
walk 862710094
walk 738315226
walk 241563033
walk 540515638
walk 681385637
walk 331506134
walk 262776777
walk 464408197
walk 712060584
w...

result:

ok OK, guesses=10000

Test #18:

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

input:

591669487
813358295
34768834
157537347
586079113
314094608
17371731
709774504
183623878
158060418
823439979
674028124
746153382
365921946
563350857
455976313
866473827
679562110
471709535
546833653
714144856
292406332
455486718
406977080
104058807
263025746
431669142
876363961
290004579
98599806
661...

output:

walk 850949386
walk 342691965
walk 665818481
walk 790794267
walk 519897820
walk 112840413
walk 745513268
walk 716014297
walk 729581581
walk 76213240
walk 687083890
walk 910234256
walk 290873785
walk 407244779
walk 314606893
walk 539729282
walk 775330533
walk 673841073
walk 873469863
walk 597701356
w...

result:

ok OK, guesses=10000

Test #19:

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

input:

102136661
152003113
17563148
261416682
16452743
125032936
84120073
240782532
246800684
50764713
69706041
111555080
90338507
196809673
229170604
115003215
31445661
50504689
61526951
32470223
16731801
170418442
70057009
39345319
36267842
60929728
116093669
229641222
114816706
19359400
104490734
131193...

output:

walk 712946100
walk 424812238
walk 791438938
walk 119376144
walk 311841794
walk 494381291
walk 361415076
walk 634245917
walk 113729883
walk 108570837
walk 773012919
walk 539104162
walk 143846500
walk 956638039
walk 161140942
walk 287875156
walk 695627899
walk 596068929
walk 374713781
walk 278294054
...

result:

ok OK, guesses=10000

Test #20:

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

input:

328022742
360829526
310511957
117267150
311680785
14220972
27986048
5568741
371930717
392334109
207670296
51585987
247059664
317562625
326976296
375911365
86841409
303338066
32224782
148687411
162838510
354633674
165151206
153084781
85954300
151179183
184440582
136946436
163191639
103934270
81350706...

output:

walk 219352403
walk 755358796
walk 275013072
walk 917927034
walk 694633674
walk 169105710
walk 491510099
walk 778735122
walk 160702520
walk 194250039
walk 842900080
walk 624782889
walk 462166505
walk 445009533
walk 215480307
walk 246685485
walk 274717473
walk 644582229
walk 285810888
walk 858354393
...

result:

ok OK, guesses=10000

Test #21:

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

input:

78680040
92601250
92277224
17430466
68557576
106042280
101003026
7656169
32248519
124271880
5927900
89823180
17788754
52453683
11378991
65829371
55950294
87246500
71688831
7679421
55384932
60817537
20092213
68212199
24880562
100525396
68066661
39013404
30585773
200862
135575385
63582216
95055016
676...

output:

walk 708551974
walk 604421274
walk 471830522
walk 824309905
walk 545383547
walk 128041866
walk 988753717
walk 182406375
walk 711617397
walk 507286882
walk 854344424
walk 153932009
walk 224610395
walk 540816505
walk 137293995
walk 279994801
walk 452680840
walk 37395609
walk 357975608
walk 193488795
w...

result:

ok OK, guesses=10000

Test #22:

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

input:

104510547
198674411
132076181
59794045
20463550
89537814
98572240
140555269
67552312
205681831
111627484
189352371
178059502
237325280
317927769
272394443
320094256
128379867
124769314
24066194
245538530
266888937
188227119
10817212
211141855
94142475
69354117
259058988
25218411
21247514
123437531
2...

output:

walk 40715471
walk 224331155
walk 302999222
walk 300678595
walk 506752382
walk 104970749
walk 863181562
walk 774552499
walk 936935506
walk 233648625
walk 386753660
walk 667146806
walk 13265610
walk 414827601
walk 317318522
walk 630308266
walk 490985176
walk 375061778
walk 371423423
walk 103156045
wa...

result:

ok OK, guesses=10000

Test #23:

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

input:

220433343
675860296
100568918
726819167
654170732
946953296
924083786
853076876
344173052
900491980
71935470
207848425
192398000
951640319
189479327
896903769
642847951
586379923
533445535
385347196
110629322
829181566
417462892
65039471
488464288
651106712
530998145
426254434
99558344
908485653
235...

output:

walk 285255064
walk 192112685
walk 624304703
walk 491614646
walk 391093808
walk 789953919
walk 296601761
walk 695939020
walk 694131626
walk 331091681
walk 679257716
walk 981776951
walk 385969507
walk 942547168
walk 151184842
walk 523143955
walk 679041579
walk 257873966
walk 202270947
walk 33531311
w...

result:

ok OK, guesses=10000

Test #24:

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

input:

402670209
61122681
990207175
976625455
596589812
533411510
302209085
602039519
780537679
396446711
24819070
888706141
28561265
415827409
145975103
783103281
196825306
520124874
625233462
557526358
530597593
263922080
206671727
161111346
725725707
849084882
198818772
908627770
587007845
352290560
581...

output:

walk 545669075
walk 679913557
walk 999147118
walk 356664322
walk 649754276
walk 662995955
walk 746441877
walk 293137066
walk 603974090
walk 859048187
walk 961013104
walk 33430967
walk 336830721
walk 980293938
walk 355951726
walk 281956164
walk 75100359
walk 838001249
walk 851921267
walk 326881667
wa...

result:

ok OK, guesses=10000

Test #25:

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

input:

281334004
386341630
59756092
669598171
664441324
322328424
110039933
513426436
285611120
747361136
83383020
203385768
541807066
655086052
149688990
460435617
355981973
107306906
109695971
287431837
291903525
189497980
478956526
364824509
591900813
243412465
1558799
371184873
254429371
343456300
1301...

output:

walk 788133202
walk 119843878
walk 392663525
walk 620787051
walk 481060772
walk 271282415
walk 836557008
walk 226549888
walk 339801395
walk 753118073
walk 824816300
walk 690616509
walk 881673036
walk 799789319
walk 422330902
walk 481345758
walk 203018437
walk 733980974
walk 741226634
walk 560116828
...

result:

ok OK, guesses=10000

Test #26:

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

input:

55486862
91694262
52881740
90022359
33392794
65633324
60968296
6720367
17107425
61814621
84447448
38247124
103765021
73265034
107612489
73207666
52400213
82674131
34758259
8704044
30836736
12848667
62029480
92975896
74489293
65721439
117543570
28442887
57688400
2870901
7784630
1353695
78556604
13656...

output:

walk 167613310
walk 489469930
walk 170475142
walk 205795962
walk 107436762
walk 509247412
walk 265202373
walk 691441546
walk 208704541
walk 753396970
walk 906993993
walk 288492799
walk 753528817
walk 21498828
walk 69798207
walk 956573213
walk 467016418
walk 574330129
walk 26597286
walk 113575974
wal...

result:

ok OK, guesses=10000

Test #27:

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

input:

410386882
307903803
176952878
294595861
359297503
912516224
272163831
917853427
726893496
869492264
397536813
57588808
150411565
607838313
481501272
119850356
762381783
56859793
403439301
156870910
763780329
527858683
435247650
566534164
86881730
541956488
207203212
464202863
102166147
503302309
275...

output:

walk 858677702
walk 551843251
walk 314831895
walk 550001903
walk 354873587
walk 14488291
walk 433878947
walk 885424406
walk 79544639
walk 208447453
walk 244125159
walk 533845265
walk 565904107
walk 221004443
walk 824891734
walk 955703829
walk 154271067
walk 494666510
walk 111497703
walk 822388694
wa...

result:

ok OK, guesses=10000

Test #28:

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

input:

696847248
693575758
119826416
323214460
95309758
357219579
262826043
315681717
412200759
759092770
803738106
199645226
71450863
384161766
457488512
763377370
58080891
114593770
354509110
703459598
615858510
36225314
442545466
464350674
730918461
686174365
17421891
797678829
336726786
273318217
28956...

output:

walk 345597079
walk 263971446
walk 45496300
walk 519950946
walk 255713041
walk 615084321
walk 7392386
walk 909562339
walk 783954890
walk 584658536
walk 505146339
walk 654171746
walk 808305602
walk 701464429
walk 828433937
walk 57771270
walk 988291018
walk 238426594
walk 456553779
walk 625136845
walk...

result:

ok OK, guesses=10000

Test #29:

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

input:

792709725
33894629
89039948
965422146
939021379
619803070
534096033
869604979
768475832
767559129
648714311
764348566
678143056
674898304
131962441
301085746
384464395
908776881
984560687
278641094
561570997
344552920
796801678
657831180
291646980
756856199
284618939
528492148
563733613
101621602
31...

output:

walk 11569255
walk 473219307
walk 333978971
walk 734753558
walk 102657701
walk 90460702
walk 869253744
walk 422146328
walk 242386689
walk 271323917
walk 127007305
walk 127817307
walk 731561910
walk 671427180
walk 164745516
walk 345659451
walk 738432725
walk 700753794
walk 141386960
walk 438864453
wa...

result:

ok OK, guesses=10000

Test #30:

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

input:

604675326
656809102
31094506
307362189
7944645
274036598
595797197
327863397
407143713
638522761
305523632
420724424
119910451
680030125
631987803
480085590
804663791
264629840
21819332
533066978
737281689
351451124
808897290
422368386
803793267
650131231
611811695
143961895
736393736
54338664
71903...

output:

walk 56314332
walk 459038944
walk 665509211
walk 318957341
walk 401947942
walk 325267774
walk 943436602
walk 510236919
walk 621792145
walk 483836446
walk 153896021
walk 775602584
walk 952804858
walk 381548956
walk 449395603
walk 471092529
walk 379980517
walk 948377334
walk 181423627
walk 257441992
w...

result:

ok OK, guesses=10000

Test #31:

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

input:

401795220
723123698
798667499
728932099
532454333
285999404
809993611
673385014
744195299
764134865
106997640
610335123
180364218
488597166
281592017
629038896
61800806
52770337
327238731
478679482
323933562
459160899
502061610
168269570
100055932
100451515
500410453
760973701
179721401
813593207
46...

output:

walk 115824254
walk 321328478
walk 934782495
walk 789503294
walk 662760928
walk 612783765
walk 523994207
walk 722630097
walk 70810285
walk 879178260
walk 202101469
walk 503337483
walk 429267789
walk 308232948
walk 652233545
walk 347446879
walk 292000604
walk 850208225
walk 274468394
walk 151440751
w...

result:

ok OK, guesses=10000

Test #32:

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

input:

687464419
582062216
63124443
218261511
644573196
32904932
216389731
324592440
798563678
511245458
370293399
200764053
582791419
280256167
627061459
498198304
358170884
927287042
788881782
289517779
562703456
168200773
892704201
709653589
447945726
426336360
947211135
738798719
334172941
543637054
33...

output:

walk 929898738
walk 93290278
walk 251318710
walk 137491971
walk 371332359
walk 491869469
walk 249180185
walk 584028323
walk 968183831
walk 980394993
walk 615186853
walk 766759128
walk 978879058
walk 584583951
walk 210034959
walk 163914882
walk 743334016
walk 129836466
walk 147562051
walk 987729235
w...

result:

ok OK, guesses=10000

Test #33:

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

input:

125199729
264228167
829155986
660035356
895854259
254579284
352575522
239354076
625045181
173983226
89330775
311852794
14288279
773857566
561776370
865545523
877984409
53425787
70358512
841582813
756875842
128835727
697360556
641527034
541610693
132810253
433466982
184937529
270878710
796083639
1073...

output:

walk 125199728
walk 139028438
walk 564927819
walk 779237695
walk 235818903
walk 307083350
walk 97996238
walk 835136879
walk 385691105
walk 497296370
walk 863705874
walk 222522019
walk 650793810
walk 759569287
walk 736277129
walk 303769153
walk 12438886
walk 123799703
walk 16932725
walk 771224301
wal...

result:

ok OK, guesses=10000

Test #34:

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

input:

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

output:

walk 79272447
walk 54373652
walk 527419704
walk 82803034
walk 552520377
walk 589390683
walk 891498674
walk 141717054
walk 372674781
walk 498247778
walk 695388744
walk 436183441
walk 189107476
walk 857017288
walk 98853927
walk 206777549
walk 670357306
walk 409529205
walk 382915644
walk 494903908
walk...

result:

ok OK, guesses=10000

Test #35:

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

input:

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

output:

walk 30775012
walk 913515608
walk 16002374
walk 980987584
walk 28443635
walk 834832528
walk 247230521
walk 217849930
walk 171693821
walk 927971114
walk 848724882
walk 477832206
walk 954726669
walk 2218881
walk 916121433
walk 957219593
walk 316107310
walk 407260706
walk 262691450
walk 671448631
walk ...

result:

ok OK, guesses=10000

Test #36:

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

input:

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

output:

walk 135790641
walk 188511413
walk 614694917
walk 352426096
walk 149346724
walk 598624785
walk 572885530
walk 417961398
walk 71382244
walk 857071022
walk 93271774
walk 741156338
walk 988456868
walk 869729250
walk 178014156
walk 208466617
walk 177011138
walk 647409278
walk 90615745
walk 49014218
walk...

result:

ok OK, guesses=10000

Test #37:

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

input:

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

output:

walk 59761507
walk 111166710
walk 971748112
walk 536065851
walk 766539550
walk 81431024
walk 501997485
walk 111629532
walk 404307272
walk 95252860
walk 166355850
walk 758858967
walk 848676768
walk 110415400
walk 888057992
walk 383975863
walk 495005271
walk 385996166
walk 83552340
walk 762440474
walk...

result:

ok OK, guesses=10000

Test #38:

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

input:

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

output:

walk 547432590
walk 375764271
walk 492962985
walk 575158086
walk 58090720
walk 792543430
walk 927783654
walk 112986104
walk 391253705
walk 866883907
walk 858740132
walk 638125147
walk 812277930
walk 976610538
walk 279758903
walk 334411782
walk 923224852
walk 3078178
walk 53464275
walk 951858096
walk...

result:

ok OK, guesses=10000

Test #39:

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

input:

481
1731
867
662
2466
2449
2587
1029
2329
915
465
2601
2787
454
988
2523
959
585
1413
84
2716
994
315
2533
851
574
2958
1178
318
993
1554
1976
1716
2586
612
681
2009
933
132
2073
2858
1366
926
1755
2458
657
1361
2553
2201
642
236
9
1032
2824
2796
459
1411
2792
1254
976
2266
446
1251
2824
1768
931
56...

output:

walk 589965316
walk 407920816
walk 768397582
walk 251566725
walk 420518696
walk 573406136
walk 455829664
walk 142867864
walk 734055040
walk 536262577
walk 850693871
walk 198904017
walk 18795510
walk 227323378
walk 30207494
walk 516488530
walk 869590004
walk 609799833
walk 142854301
walk 176693634
wa...

result:

ok OK, guesses=10000

Test #40:

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

input:

1605
1804
1137
617
1525
258
433
1864
287
78
1899
173
1968
48
959
617
1785
165
1741
1645
1635
1917
1004
329
469
590
1284
1467
1786
1773
184
1872
1220
590
3
1712
897
1062
1030
823
1213
244
896
235
1742
360
1994
279
1419
333
1424
767
1231
682
14
1655
142
781
1064
1365
1044
1594
1418
1039
428
533
1826
1...

output:

walk 90137771
walk 449526094
walk 912958435
walk 380061406
walk 443025548
walk 515576944
walk 26092906
walk 263681261
walk 672515655
walk 803496554
walk 349946707
walk 832512370
walk 260643656
walk 75581177
walk 480280856
walk 34544366
walk 203353141
walk 769589123
walk 154506532
walk 199013618
walk...

result:

ok OK, guesses=10000

Test #41:

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

input:

165
534
1078
3793
917
3716
1401
3661
2666
1738
233
2227
3886
1898
1930
2871
1129
3737
1906
1101
1752
3791
3261
3111
2732
788
93
3714
1923
2155
544
2822
1873
1513
699
1294
1043
1271
3101
3480
1792
516
2281
1646
2267
3081
2824
963
1469
647
798
2795
13
696
2920
323
3991
3235
2443
67
1719
1983
577
1597
...

output:

walk 761851147
walk 948199080
walk 140212992
walk 287460285
walk 436253670
walk 327278422
walk 699787306
walk 372756475
walk 168837167
walk 574059376
walk 394398284
walk 962751934
walk 497086414
walk 983637729
walk 100070726
walk 96586605
walk 10412597
walk 516035056
walk 710238748
walk 21694047
wal...

result:

ok OK, guesses=10000

Test #42:

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

input:

244
5475
4950
1784
5787
3198
5633
3581
2091
6584
3042
2069
4605
1643
2376
1856
1490
4851
4407
2939
2667
3382
6141
5681
5309
1214
801
6640
740
5250
1821
2988
6184
2509
4711
240
4121
56
5145
4837
5673
1082
2645
3322
6252
64
1953
3236
797
5581
519
6273
2014
6646
4855
6447
1039
2381
2891
73
2999
1748
11...

output:

walk 272848219
walk 330619824
walk 164730737
walk 289215936
walk 583468506
walk 166718788
walk 284785496
walk 543215860
walk 947342303
walk 693899121
walk 428500900
walk 386787765
walk 592890453
walk 133067812
walk 554552261
walk 799092029
walk 46610718
walk 843988770
walk 806714693
walk 667666592
w...

result:

ok OK, guesses=10000

Test #43:

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

input:

4059
5300
4940
4449
838
4892
2409
3102
5059
5793
5900
1174
1228
5225
473
3501
4173
2874
491
114
1863
2857
5271
6529
5574
254
6402
909
1288
1828
4932
3759
862
711
3118
5047
1658
6294
3146
3715
1664
1464
1683
1498
3161
6008
6353
3070
5643
5483
4834
2163
2456
5540
867
4401
2273
5620
1438
3997
1075
270
...

output:

walk 194761802
walk 860721670
walk 675358469
walk 15145721
walk 139067553
walk 496735670
walk 224685763
walk 61307265
walk 177660716
walk 134414345
walk 123712669
walk 717510109
walk 70321756
walk 158011002
walk 110224046
walk 296899433
walk 383101748
walk 21138551
walk 887593542
walk 853593750
walk...

result:

ok OK, guesses=10000

Test #44:

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

input:

7656779
8876924
1133846
6814600
4770381
4455972
5919929
2510363
7601323
7262405
7095437
4798406
4951833
622747
3756438
8749789
4716320
3606040
2504620
4186897
2790009
1233738
4619809
5666377
2491815
3407189
8378525
3214349
1116345
1967536
6449665
5937980
3392606
1361427
3219422
8398828
6875446
52800...

output:

walk 480666661
walk 286488807
walk 849395607
walk 466117663
walk 986054509
walk 146309401
walk 1904764
walk 448755307
walk 844476985
walk 696490110
walk 105710525
walk 283699742
walk 894025638
walk 703912682
walk 384405862
walk 427195581
walk 849501179
walk 694677241
walk 572622687
walk 649872462
wa...

result:

ok OK, guesses=10000

Test #45:

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

input:

6756829
7347416
3886066
5490539
10447057
1593068
5244724
10472841
1758370
4714382
1664503
7115236
8234421
4034916
5535599
2430907
4515585
3661830
9719814
5831968
388361
2750918
9089465
10551539
5699506
1771603
7450356
4305746
426920
3274527
246599
10505034
1790285
6533018
4929500
10047116
3009998
31...

output:

walk 529214859
walk 791253658
walk 364955059
walk 92164779
walk 690583108
walk 431160178
walk 971283092
walk 482974917
walk 968994143
walk 7355589
walk 184143010
walk 40035571
walk 663598030
walk 82849405
walk 310052422
walk 373361275
walk 981670642
walk 400539896
walk 378178092
walk 240831633
walk ...

result:

ok OK, guesses=10000

Test #46:

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

input:

9440573
12894027
7001285
2291763
122222
13995811
4857845
4470398
9191036
6006078
8342258
10324783
16199579
2857429
12226303
4860726
600631
4825231
18842272
3253403
8610613
6227405
11968866
18461752
5399423
14216932
9603334
15835590
15426091
17379229
15164824
15046770
16184073
7256929
14288613
950709...

output:

walk 231730936
walk 612575612
walk 72781504
walk 976273602
walk 435993242
walk 995213115
walk 471375408
walk 536818104
walk 134488493
walk 284112972
walk 326308061
walk 715156273
walk 320180645
walk 61791809
walk 467244652
walk 359559414
walk 386779869
walk 147850388
walk 648698256
walk 75284324
wal...

result:

ok OK, guesses=10000

Test #47:

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

input:

10392
168039
409436
32575
328028
186631
696251
578968
768568
12815
208550
121075
64535
380215
736774
369664
497390
435764
170629
696221
684309
32134
341484
397197
589753
341925
386312
456567
149120
400917
774932
71035
435417
340179
515491
582375
326926
237420
470770
61914
34860
702404
308871
504668
...

output:

walk 288947265
walk 878284609
walk 299603099
walk 722669284
walk 139695617
walk 446048667
walk 927276762
walk 126421823
walk 739651964
walk 579544774
walk 100825428
walk 114491873
walk 393784135
walk 801938984
walk 125115375
walk 913583536
walk 278210697
walk 307603307
walk 423442736
walk 578497910
...

result:

ok OK, guesses=10000

Test #48:

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

input:

50018531
3830001
19312144
42434663
35862566
56828811
4159217
53680914
32980628
37687764
42008175
33782140
33089940
3343837
29998156
57898634
2312679
5808363
42420047
5752732
39747887
50058100
36353951
15118662
4357257
6822704
38089170
2947175
14881222
16399035
55433742
19737531
7442372
35829933
1475...

output:

walk 624585698
walk 423549865
walk 326408982
walk 658816991
walk 403519561
walk 735882602
walk 281319210
walk 636646606
walk 880364438
walk 533261854
walk 682302060
walk 552443307
walk 192266765
walk 294214387
walk 728955875
walk 707878361
walk 727758057
walk 102211527
walk 142848807
walk 473247176
...

result:

ok OK, guesses=10000

Test #49:

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

input:

141993782
110210996
57447867
43193185
178790074
128030804
194183349
91691733
174629939
78141696
67803947
147720594
76249038
203471365
132519920
195339778
157467945
107931930
194615950
199384057
81592801
140840519
156594386
78147010
224525440
108857273
19546928
51605505
157901823
213214879
191556868
...

output:

walk 488186394
walk 353700543
walk 676902139
walk 511436830
walk 366768985
walk 866702188
walk 117414203
walk 138444264
walk 162282129
walk 228552883
walk 754108116
walk 394392242
walk 708028295
walk 966399277
walk 148673691
walk 656288981
walk 125756640
walk 559508238
walk 479620621
walk 254142133
...

result:

ok OK, guesses=10000

Test #50:

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

input:

360545451
7572
474106730
80455940
4368279
96222788
348068213
490486226
361437408
286499826
56251884
400243835
660273
88588760
468424942
378776088
107809708
328645537
349046422
348300893
233280537
462289780
118115594
254814205
110906559
348567071
259217891
96279598
431098684
186599099
267340734
18711...

output:

walk 216318036
walk 19565708
walk 714401997
walk 406200356
walk 666996353
walk 198796284
walk 208528465
walk 3893296
walk 335951117
walk 647623282
walk 135417246
walk 297100863
walk 37084985
walk 877221050
walk 473262675
walk 228687353
walk 682247746
walk 984124740
walk 534262761
walk 597347415
walk...

result:

ok OK, guesses=10000

Test #51:

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

input:

884493053
300198533
333635983
62895416
558389878
84983143
605214593
53432907
157039716
55567993
91198038
140709401
832842646
718008835
470796145
838830930
689901952
353476749
202770171
112205295
915999193
922678052
52799869
117337031
340976692
447092149
523201308
664657143
43966347
408713192
2894431...

output:

walk 884493052
walk 339283715
walk 957015685
walk 652837668
walk 495494462
walk 450171500
walk 520231450
walk 371796549
walk 103606809
walk 822106512
walk 959208280
walk 49511363
walk 692133245
walk 808744424
walk 676365545
walk 368034785
walk 774649257
walk 587153032
walk 772871657
walk 833013359
w...

result:

ok OK, guesses=10000

Test #52:

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

input:

152838937
3837107
73946449
35827443
144730928
60578756
91312443
142873589
33191069
55578719
59915538
283874
23882724
157462808
84427817
89376743
4892955
173919961
14025412
66845566
95565517
98663358
5603645
181945041
133604267
39874013
25503306
135571966
112219706
50034855
126940506
22797504
1120484...

output:

walk 430054805
walk 44256463
walk 70109342
walk 928172459
walk 495420071
walk 109106121
walk 997025152
walk 244819439
walk 276834066
walk 215645943
walk 777369991
walk 520143215
walk 23598850
walk 133580084
walk 120223302
walk 4948926
walk 108774505
walk 555543592
walk 419880330
walk 246078447
walk ...

result:

ok OK, guesses=10000

Test #53:

score: 0
Accepted
time: 19ms
memory: 3936kb

input:

39508963
90466359
189144105
191993634
77893729
116678812
43002433
13611196
10291465
118802946
183969243
58735376
132493292
219966465
166166024
173310613
12864936
195296739
91195722
178369923
168994498
13860509
192029142
118403193
205924107
113869951
165214611
75312586
83563220
153951683
210374818
12...

output:

walk 73721211
walk 549699916
walk 451948461
walk 786614775
walk 190428250
walk 777930671
walk 142795541
walk 597522751
walk 540324870
walk 981450626
walk 42014830
walk 793874247
walk 197682286
walk 8641554
walk 591760880
walk 752161061
walk 985100626
walk 898582129
walk 158788178
walk 424502140
walk...

result:

ok OK, guesses=10000