QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#370212#5309. Guess Cycle LengthDiaosiAC ✓41ms3864kbC++20980b2024-03-28 23:08:462024-03-28 23:08:47

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 19ms
memory: 3700kb

input:

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

output:

walk 587064424
walk 427420874
walk 959380159
walk 499273636
walk 469675728
walk 396885337
walk 584606406
walk 171059647
walk 53026173
walk 375059419
walk 248622231
walk 858883283
walk 15702323
walk 248084352
walk 272189185
walk 534176571
walk 732249315
walk 387115883
walk 552141413
walk 548812373
wa...

result:

ok OK, guesses=10000

Test #2:

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

input:

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

output:

walk 587064424
walk 427420874
walk 959380159
walk 499273636
walk 469675728
walk 396885337
walk 584606406
walk 171059647
walk 53026173
walk 375059419
walk 248622231
walk 858883283
walk 15702323
walk 248084352
walk 272189185
walk 534176571
walk 732249315
walk 387115883
walk 552141413
walk 548812373
wa...

result:

ok OK, guesses=10000

Test #3:

score: 0
Accepted
time: 27ms
memory: 3708kb

input:

9365
2947
8458
5264
9443
4991
7846
4307
5991
837
909
5965
2587
746
4600
4320
8464
2322
2976
4900
5327
5445
1702
2085
6727
6504
814
1960
8842
9495
2589
842
5639
1651
7325
7363
4768
7547
5043
908
8746
4651
2087
2368
8160
8299
408
2545
8983
2587
620
4336
3493
4010
6418
4459
4397
3684
8421
8340
8729
761...

output:

walk 35209364
walk 370243582
walk 92755511
walk 991696806
walk 24894179
walk 368435548
walk 747602855
walk 276546461
walk 185081684
walk 166794846
walk 240230072
walk 252205056
walk 910166622
walk 898428159
walk 705713854
walk 989069720
walk 878304144
walk 97793858
walk 139210654
walk 16761924
walk ...

result:

ok OK, guesses=10000

Test #4:

score: 0
Accepted
time: 40ms
memory: 3688kb

input:

35209365
405452947
498208458
489905264
514799443
883234991
630837846
907384307
92465991
259260837
499490909
751695965
661862587
560290746
266004600
255074320
133378464
231172322
370382976
387144900
951415327
361975445
696511702
483982085
211016727
106346504
680630814
547911960
300288842
443109495
37...

output:

walk 35209364
walk 370243582
walk 92755511
walk 991696806
walk 24894179
walk 368435548
walk 747602855
walk 276546461
walk 185081684
walk 166794846
walk 240230072
walk 252205056
walk 910166622
walk 898428159
walk 705713854
walk 989069720
walk 878304144
walk 97793858
walk 139210654
walk 16761924
walk ...

result:

ok OK, guesses=10000

Test #5:

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

input:

37129175
407372757
500128268
491825074
516719253
885154801
632757656
909304117
94385801
261180647
501410719
753615775
663782397
562210556
267924410
256994130
135298274
233092132
372302786
389064710
953335137
363895255
698431512
485901895
212936537
108266314
682550624
549831770
302208652
445029305
38...

output:

walk 35209364
walk 370243582
walk 92755511
walk 991696806
walk 24894179
walk 368435548
walk 747602855
walk 276546461
walk 185081684
walk 166794846
walk 240230072
walk 252205056
walk 910166622
walk 898428159
walk 705713854
walk 989069720
walk 878304144
walk 97793858
walk 139210654
walk 16761924
walk ...

result:

ok OK, guesses=10000

Test #6:

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

input:

109072143
677850329
407313516
661618829
387529512
960882821
645661609
222763869
696775393
150115250
944364834
283012243
252044673
797296672
703708099
279285992
121969734
539160627
236024172
46436469
177525127
144245379
395495884
908732039
294790291
282809306
257179907
160647357
208814446
740068612
5...

output:

walk 452186046
walk 196557018
walk 306589131
walk 208751369
walk 157148179
walk 526666917
walk 796079044
walk 149575380
walk 256850212
walk 966742841
walk 127370992
walk 105600217
walk 344274590
walk 159848887
walk 528220251
walk 480212909
walk 23496846
walk 933481909
walk 253295585
walk 815808561
w...

result:

ok OK, guesses=10000

Test #7:

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

input:

205759980
648743065
955332196
527957566
97903155
847898661
643977705
793553085
338779666
372627689
510480825
404239632
594391937
754240824
103135840
762673984
786170830
719652739
972948324
788756885
896341239
897733715
512897783
345704900
37493008
776686466
904391379
737363229
618047286
873850044
59...

output:

walk 452186046
walk 196557018
walk 306589131
walk 208751369
walk 157148179
walk 526666917
walk 796079044
walk 149575380
walk 256850212
walk 966742841
walk 127370992
walk 105600217
walk 344274590
walk 159848887
walk 528220251
walk 480212909
walk 23496846
walk 933481909
walk 253295585
walk 815808561
w...

result:

ok OK, guesses=10000

Test #8:

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

input:

53267835
96019877
205774667
173541317
334950879
658396304
261932445
925931948
163263075
56200285
751615837
879547484
356710832
187885253
796374255
69521087
623932557
730145741
982235874
49833287
96854121
190019994
370197229
650702688
381167045
382228255
936278578
272328610
654690812
657905180
319339...

output:

walk 932279997
walk 922562144
walk 285274178
walk 552235566
walk 665326706
walk 80787630
walk 233568623
walk 241607124
walk 809587821
walk 503909202
walk 625376931
walk 11368118
walk 384063248
walk 58337903
walk 345775023
walk 269814945
walk 615319586
walk 532040110
walk 689193220
walk 117188706
wal...

result:

ok OK, guesses=10000

Test #9:

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

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 932279997
walk 922562144
walk 285274178
walk 552235566
walk 665326706
walk 80787630
walk 233568623
walk 241607124
walk 809587821
walk 503909202
walk 625376931
walk 11368118
walk 384063248
walk 58337903
walk 345775023
walk 269814945
walk 615319586
walk 532040110
walk 689193220
walk 117188706
wal...

result:

ok OK, guesses=10000

Test #10:

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

input:

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

output:

walk 751458467
walk 850346634
walk 415177271
walk 938679261
walk 40842314
walk 837289654
walk 793505422
walk 265733397
walk 639736008
walk 71881990
walk 992287664
walk 210518038
walk 363090729
walk 978421906
walk 701156894
walk 94006519
walk 381073141
walk 240449113
walk 260648858
walk 378856643
wal...

result:

ok OK, guesses=10000

Test #11:

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

input:

465
942
210
877
66
985
175
473
35
30
703
980
216
777
104
236
835
224
941
318
846
194
939
869
733
272
918
534
191
267
590
434
659
20
829
100
763
871
291
359
228
513
106
322
621
750
756
753
855
724
954
857
88
336
891
912
212
492
392
440
254
306
927
337
740
635
10
451
226
51
631
804
65
306
60
768
582
1...

output:

walk 751458467
walk 850346634
walk 415177271
walk 938679261
walk 40842314
walk 837289654
walk 793505422
walk 265733397
walk 639736008
walk 71881990
walk 992287664
walk 210518038
walk 363090729
walk 978421906
walk 701156894
walk 94006519
walk 381073141
walk 240449113
walk 260648858
walk 378856643
wal...

result:

ok OK, guesses=10000

Test #12:

score: 0
Accepted
time: 21ms
memory: 3708kb

input:

5957
909
7771
1654
7085
8363
332
7163
1002
6112
9117
5698
5999
1115
6758
6395
2163
1449
5986
4591
1105
1236
2000
1109
4645
7221
540
3209
4315
6473
3028
3760
732
6148
652
6670
625
2604
3644
7406
1136
85
1428
4593
6285
251
1872
8895
2277
8434
7449
870
6103
6414
6043
9993
3134
3492
3507
4589
7019
4499
...

output:

walk 751458467
walk 850346634
walk 415177271
walk 938679261
walk 40842314
walk 837289654
walk 793505422
walk 265733397
walk 639736008
walk 71881990
walk 992287664
walk 210518038
walk 363090729
walk 978421906
walk 701156894
walk 94006519
walk 381073141
walk 240449113
walk 260648858
walk 378856643
wal...

result:

ok OK, guesses=10000

Test #13:

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

input:

15726
64207
67125
92334
98774
46170
28331
22571
4532
51204
84731
21560
18223
71360
87365
68194
18547
13853
52345
3314
31776
48564
55073
58482
35873
51233
12259
75384
92199
11684
283
95509
40743
39175
41046
92098
21417
5621
53936
2865
12462
36453
99184
10622
33941
46752
31230
16816
43748
37465
94501
...

output:

walk 649188192
walk 94855680
walk 926902199
walk 239605170
walk 393236890
walk 983837059
walk 204199938
walk 104729312
walk 119359530
walk 464247722
walk 4592395
walk 307915072
walk 34148452
walk 468480552
walk 624567888
walk 753633703
walk 224866778
walk 187250258
walk 520036343
walk 115760016
walk...

result:

ok OK, guesses=10000

Test #14:

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

input:

938579
744144
861589
874176
917469
373419
188789
606649
739567
791185
184785
565768
968255
747337
118952
461683
274631
914874
216664
253467
139074
580033
811694
664631
188942
265308
171392
50884
548447
425319
114631
218543
384795
344988
707290
262930
646241
784809
790735
811339
377144
946222
118244
...

output:

walk 649188192
walk 94855680
walk 926902199
walk 239605170
walk 393236890
walk 983837059
walk 204199938
walk 104729312
walk 119359530
walk 464247722
walk 4592395
walk 307915072
walk 34148452
walk 468480552
walk 624567888
walk 753633703
walk 224866778
walk 187250258
walk 520036343
walk 115760016
walk...

result:

ok OK, guesses=10000

Test #15:

score: 0
Accepted
time: 30ms
memory: 3704kb

input:

112899
4192271
5615035
2774338
588664
7607634
5573577
9952344
5266642
1007377
1766408
4855213
1757764
9225295
4186706
9964236
3867608
2718483
1898703
1336163
1397215
2834900
5514790
7827414
1526594
8759393
2696233
5765763
5175031
8834150
8983996
1674296
4347348
2524382
6550689
626235
3198878
8828563...

output:

walk 912773278
walk 315217979
walk 641596105
walk 430154003
walk 265460586
walk 911669648
walk 458443638
walk 998211557
walk 9459002
walk 964620442
walk 723473790
walk 307520534
walk 44703552
walk 239756050
walk 574021579
walk 329618317
walk 60508861
walk 223203008
walk 682225824
walk 726077071
walk...

result:

ok OK, guesses=10000

Test #16:

score: 0
Accepted
time: 33ms
memory: 3700kb

input:

91420633
83118918
81609363
54504702
52290535
55230945
28092490
38669651
29402036
472696
70334456
94007759
31120307
24894350
40151251
3684536
78977178
18789158
44277132
83713425
62101404
31205883
2716966
26632266
49871740
24297119
42889308
86682439
36591276
28694141
12675201
78470861
13315155
1185916...

output:

walk 912773278
walk 315217979
walk 641596105
walk 430154003
walk 265460586
walk 911669648
walk 458443638
walk 998211557
walk 9459002
walk 964620442
walk 723473790
walk 307520534
walk 44703552
walk 239756050
walk 574021579
walk 329618317
walk 60508861
walk 223203008
walk 682225824
walk 726077071
walk...

result:

ok OK, guesses=10000

Test #17:

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

input:

466418094
571119244
416247610
264372253
81075271
917441017
23154100
324810041
580590809
741188309
366893919
848636519
339155231
180200214
231331236
270322196
663405662
264380387
997278855
280931421
3254757
286982016
904387334
896281374
624603491
514221040
810860219
752979808
442934875
966135226
8063...

output:

walk 328361194
walk 379185375
walk 191441466
walk 941634212
walk 439567297
walk 527103236
walk 522576411
walk 70962704
walk 535778822
walk 861389071
walk 26606583
walk 567694585
walk 199826655
walk 87568834
walk 144429880
walk 832461332
walk 811156880
walk 120467565
walk 756604595
walk 50794177
walk...

result:

ok OK, guesses=10000

Test #18:

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

input:

328556638
699178339
665570846
363969416
883164838
618611586
881818758
374184992
658387082
725813782
671743255
528881781
271606276
167511359
657139702
555551606
625707319
706292060
130919502
348884483
437768133
529924978
874407698
459201791
284903696
588861103
216809884
265668311
257217585
6815027
87...

output:

walk 328361194
walk 379185375
walk 191441466
walk 941634212
walk 439567297
walk 527103236
walk 522576411
walk 70962704
walk 535778822
walk 861389071
walk 26606583
walk 567694585
walk 199826655
walk 87568834
walk 144429880
walk 832461332
walk 811156880
walk 120467565
walk 756604595
walk 50794177
walk...

result:

ok OK, guesses=10000

Test #19:

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

input:

45624493
18238542
88954227
170213880
142142909
157236178
35935911
223594793
39155415
265295998
258445137
217294399
254804540
20747887
61215
30605379
196724506
222527718
255383623
62169081
267243647
152590258
143395133
38578926
78929981
268058261
180532571
173999308
101538857
28435128
248131822
99151...

output:

walk 328361194
walk 379185375
walk 191441466
walk 941634212
walk 439567297
walk 527103236
walk 522576411
walk 70962704
walk 535778822
walk 861389071
walk 26606583
walk 567694585
walk 199826655
walk 87568834
walk 144429880
walk 832461332
walk 811156880
walk 120467565
walk 756604595
walk 50794177
walk...

result:

ok OK, guesses=10000

Test #20:

score: 0
Accepted
time: 41ms
memory: 3684kb

input:

225553497
60298917
136835600
108634238
229613724
49680847
241016590
340766844
51843819
36198113
383749191
315960152
27338682
28864068
60662923
217077810
348030682
74288029
297739713
85808371
388941364
171571328
66461451
56675555
271224647
191239294
271758385
49011234
247422832
58940838
244485223
378...

output:

walk 140787028
walk 487188926
walk 560146449
walk 814960339
walk 187548180
walk 112903991
walk 139241636
walk 871873608
walk 400084986
walk 350016803
walk 880580845
walk 257041219
walk 413987207
walk 889109311
walk 88549135
walk 799903568
walk 176826978
walk 271685094
walk 388353039
walk 592970669
w...

result:

ok OK, guesses=10000

Test #21:

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

input:

32242457
61903265
66339986
88652886
51756773
561932
47168068
122395573
67279781
134792373
14135526
76920990
84216435
62082750
96742388
25063575
109899806
142180395
38709649
30902376
78340357
4494723
51644791
85368369
22118471
83941638
74350588
142722636
98296589
104716215
9003999
60184336
81577300
4...

output:

walk 140787028
walk 487188926
walk 560146449
walk 814960339
walk 187548180
walk 112903991
walk 139241636
walk 871873608
walk 400084986
walk 350016803
walk 880580845
walk 257041219
walk 413987207
walk 889109311
walk 88549135
walk 799903568
walk 176826978
walk 271685094
walk 388353039
walk 592970669
w...

result:

ok OK, guesses=10000

Test #22:

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

input:

127478175
23650107
163732699
3146060
233842254
273555246
316227021
135796677
976942
85871154
90815931
60626067
183621264
296833459
103316403
33744185
46571139
258993419
259249281
266995008
38489652
41733046
316710142
24139436
7591060
257844452
83928948
298589711
311138017
153971184
19228226
22041615...

output:

walk 484364923
walk 401334863
walk 67321576
walk 370143311
walk 119987360
walk 187404981
walk 243751191
walk 406055351
walk 483435730
walk 474261322
walk 202193366
walk 720157435
walk 720502526
walk 501247345
walk 970250860
walk 314597330
walk 842063229
walk 652407754
walk 263329917
walk 826757370
w...

result:

ok OK, guesses=10000

Test #23:

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

input:

513602436
594359002
43737029
342684334
866976386
905537275
417146220
542553763
66466182
98445860
976791519
631933880
965864568
388803424
685393008
563602941
820916763
619008994
969636563
695769742
134490573
195398283
704514200
845182410
527636139
518720703
235628600
989901324
72083798
777715848
8180...

output:

walk 484364923
walk 401334863
walk 67321576
walk 370143311
walk 119987360
walk 187404981
walk 243751191
walk 406055351
walk 483435730
walk 474261322
walk 202193366
walk 720157435
walk 720502526
walk 501247345
walk 970250860
walk 314597330
walk 842063229
walk 652407754
walk 263329917
walk 826757370
w...

result:

ok OK, guesses=10000

Test #24:

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

input:

559345986
241668889
619509478
852852464
793431668
954749316
674567451
234435895
551282588
644447777
473816551
677234167
199982459
101881223
528360457
275768526
388313350
83466323
384117115
322725919
628218421
440154097
333303062
416558190
503172612
73374657
330287949
578179449
205288690
842243443
51...

output:

walk 912125505
walk 796473173
walk 15215542
walk 318354546
walk 442533353
walk 255903692
walk 86021687
walk 147085961
walk 648788252
walk 73904874
walk 731429332
walk 727507676
walk 910282629
walk 901604958
walk 353978750
walk 140218698
walk 691581464
walk 274908397
walk 42738124
walk 503049626
walk...

result:

ok OK, guesses=10000

Test #25:

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

input:

714105304
317951899
157352730
364878864
536447511
437848415
342198242
201766406
691946880
260962910
522384229
427993334
37329720
240483882
532589281
488572183
540612940
736767818
659695189
623810915
272883317
253182745
201706420
131860173
149596649
173380081
324853680
193183676
376839664
378432280
4...

output:

walk 912125505
walk 796473173
walk 15215542
walk 318354546
walk 442533353
walk 255903692
walk 86021687
walk 147085961
walk 648788252
walk 73904874
walk 731429332
walk 727507676
walk 910282629
walk 901604958
walk 353978750
walk 140218698
walk 691581464
walk 274908397
walk 42738124
walk 503049626
walk...

result:

ok OK, guesses=10000

Test #26:

score: 0
Accepted
time: 21ms
memory: 3692kb

input:

109644601
56708317
57932096
12483543
5078455
100953454
32784059
92629728
30199350
76639654
75679222
28572973
68647543
109615780
95786918
57800484
21639295
32257310
116679173
77185909
72904648
77999179
119020688
58856417
93190246
19408522
33030900
82019450
49571940
99555320
17310434
101745659
1134347...

output:

walk 912125505
walk 796473173
walk 15215542
walk 318354546
walk 442533353
walk 255903692
walk 86021687
walk 147085961
walk 648788252
walk 73904874
walk 731429332
walk 727507676
walk 910282629
walk 901604958
walk 353978750
walk 140218698
walk 691581464
walk 274908397
walk 42738124
walk 503049626
walk...

result:

ok OK, guesses=10000

Test #27:

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

input:

459931128
545355606
142511450
574562624
781055038
85556942
175672575
654295736
541657393
74912628
767466625
543339745
448587567
635748497
363462524
572315269
309075557
908073864
780319007
483643879
430926227
342506149
194630256
109039362
186290146
86210936
170993312
480424863
648008533
591582987
269...

output:

walk 412511908
walk 654493258
walk 902453124
walk 116874424
walk 439546809
walk 185346379
walk 802122173
walk 108836296
walk 992682027
walk 748676225
walk 630399947
walk 314281585
walk 852601362
walk 52247130
walk 714456497
walk 113096385
walk 194565818
walk 477044517
walk 147489308
walk 886089917
w...

result:

ok OK, guesses=10000

Test #28:

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

input:

388154047
706798972
618206193
670607826
620196489
697622136
122364300
469097906
670285930
164029258
360430572
254888961
68826777
487367697
557740411
287827687
462542173
632395187
542831771
368740527
217180749
143504292
546395561
272563186
316328501
508184163
544402525
466206176
11940763
117680637
65...

output:

walk 412511908
walk 654493258
walk 902453124
walk 116874424
walk 439546809
walk 185346379
walk 802122173
walk 108836296
walk 992682027
walk 748676225
walk 630399947
walk 314281585
walk 852601362
walk 52247130
walk 714456497
walk 113096385
walk 194565818
walk 477044517
walk 147489308
walk 886089917
w...

result:

ok OK, guesses=10000

Test #29:

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

input:

483354479
184124637
160269355
812367332
683138957
694818450
771986023
216648739
150944010
287661279
891957479
147139085
839747974
76614133
259325985
164400133
125556472
956037031
283218170
228722190
182960086
713703093
811826062
449906743
146281452
816856201
710258642
163521305
551210391
937715721
3...

output:

walk 346551767
walk 354382932
walk 224332861
walk 878344438
walk 709782464
walk 251146424
walk 871288942
walk 9903889
walk 588063354
walk 526716037
walk 448931207
walk 846176677
walk 941356463
walk 516166621
walk 478398413
walk 389859052
walk 629509404
walk 534515966
walk 99094070
walk 858836123
wal...

result:

ok OK, guesses=10000

Test #30:

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

input:

195113779
63152398
556761803
478142270
93781049
564755727
436128615
551992883
210318763
233632992
603496664
494479095
176319106
798789564
661639833
716387768
214439714
328839078
425257030
599287561
537186078
307419085
147233371
35550328
691045644
715316477
802961010
35801814
305244560
69515418
44099...

output:

walk 346551767
walk 354382932
walk 224332861
walk 878344438
walk 709782464
walk 251146424
walk 871288942
walk 9903889
walk 588063354
walk 526716037
walk 448931207
walk 846176677
walk 941356463
walk 516166621
walk 478398413
walk 389859052
walk 629509404
walk 534515966
walk 99094070
walk 858836123
wal...

result:

ok OK, guesses=10000

Test #31:

score: 0
Accepted
time: 32ms
memory: 3764kb

input:

632522733
127666971
351999832
371105576
221649346
472795770
484846018
494749907
223574567
750290604
339983117
326921100
409038869
65966796
544365209
74985567
704494971
379772243
478866313
478463742
609353357
770392965
297101398
604428428
516809619
604215205
789455758
50487937
669728368
551777153
434...

output:

walk 346551767
walk 354382932
walk 224332861
walk 878344438
walk 709782464
walk 251146424
walk 871288942
walk 9903889
walk 588063354
walk 526716037
walk 448931207
walk 846176677
walk 941356463
walk 516166621
walk 478398413
walk 389859052
walk 629509404
walk 534515966
walk 99094070
walk 858836123
wal...

result:

ok OK, guesses=10000

Test #32:

score: 0
Accepted
time: 25ms
memory: 3648kb

input:

404751756
60524720
446533252
224233693
506529034
258001367
973413621
648077295
688304038
510144475
399313096
288549464
616362120
264292106
499981879
127633360
741424391
844986625
763777491
828358864
147972483
376351958
405784130
257356243
162576140
444851885
377155307
443662570
636602672
443377638
7...

output:

walk 666576824
walk 312231488
walk 435736256
walk 65914899
walk 640417722
walk 63580636
walk 172029823
walk 948488775
walk 368511499
walk 243645000
walk 196828851
walk 301555051
walk 661126363
walk 544230995
walk 540238271
walk 257915736
walk 744651271
walk 180327716
walk 907743170
walk 27246250
wal...

result:

ok OK, guesses=10000

Test #33:

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

input:

666576825
30449988
466186244
532101143
224160540
287741176
459770999
459901449
828412948
123699623
320528474
622083525
334851563
879082558
470962504
728878240
525171186
705498902
664883747
692129997
695906984
376796360
308075340
881244020
469518298
881092135
239642885
731888038
905709821
354324055
1...

output:

walk 666576824
walk 312231488
walk 435736256
walk 65914899
walk 640417722
walk 63580636
walk 172029823
walk 948488775
walk 368511499
walk 243645000
walk 196828851
walk 301555051
walk 661126363
walk 544230995
walk 540238271
walk 257915736
walk 744651271
walk 180327716
walk 907743170
walk 27246250
wal...

result:

ok OK, guesses=10000

Test #34:

score: 0
Accepted
time: 37ms
memory: 3704kb

input:

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

output:

walk 120189491
walk 633451697
walk 467946760
walk 820118010
walk 65038027
walk 893157834
walk 673236058
walk 61289633
walk 383544384
walk 31411874
walk 134879479
walk 306980207
walk 632031574
walk 431917746
walk 983863984
walk 82230977
walk 279888832
walk 815697325
walk 555186603
walk 685569319
walk...

result:

ok OK, guesses=10000

Test #35:

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

input:

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

output:

walk 120189491
walk 633451697
walk 467946760
walk 820118010
walk 65038027
walk 893157834
walk 673236058
walk 61289633
walk 383544384
walk 31411874
walk 134879479
walk 306980207
walk 632031574
walk 431917746
walk 983863984
walk 82230977
walk 279888832
walk 815697325
walk 555186603
walk 685569319
walk...

result:

ok OK, guesses=10000

Test #36:

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

input:

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

output:

walk 617982839
walk 968921495
walk 534983625
walk 426979750
walk 807141161
walk 629053877
walk 339335088
walk 114651819
walk 571353177
walk 46147496
walk 747761780
walk 341860318
walk 974913818
walk 871578872
walk 897767783
walk 136163250
walk 516302055
walk 586962960
walk 831790430
walk 992946110
w...

result:

ok OK, guesses=10000

Test #37:

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

input:

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

output:

walk 617982839
walk 968921495
walk 534983625
walk 426979750
walk 807141161
walk 629053877
walk 339335088
walk 114651819
walk 571353177
walk 46147496
walk 747761780
walk 341860318
walk 974913818
walk 871578872
walk 897767783
walk 136163250
walk 516302055
walk 586962960
walk 831790430
walk 992946110
w...

result:

ok OK, guesses=10000

Test #38:

score: 0
Accepted
time: 36ms
memory: 3700kb

input:

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

output:

walk 617982839
walk 968921495
walk 534983625
walk 426979750
walk 807141161
walk 629053877
walk 339335088
walk 114651819
walk 571353177
walk 46147496
walk 747761780
walk 341860318
walk 974913818
walk 871578872
walk 897767783
walk 136163250
walk 516302055
walk 586962960
walk 831790430
walk 992946110
w...

result:

ok OK, guesses=10000

Test #39:

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

input:

920
202
2904
2021
1263
1802
1448
1232
359
19
2490
1465
2842
937
1811
2879
1529
2587
343
2659
1224
2281
251
1152
2031
1108
905
1496
572
2892
858
1981
1746
2078
2827
10
2705
2484
2761
2624
2418
1526
809
2590
2851
548
214
2415
1163
1918
1862
432
861
1070
2239
1104
2591
2690
1710
2098
2452
2591
1806
154...

output:

walk 584232614
walk 111542068
walk 969727665
walk 52666495
walk 800614528
walk 154619636
walk 247540027
walk 7030332
walk 582127631
walk 694877861
walk 723692887
walk 70948084
walk 702235606
walk 32287691
walk 325809608
walk 977588006
walk 154614949
walk 92466247
walk 793186137
walk 435921853
walk 4...

result:

ok OK, guesses=10000

Test #40:

score: 0
Accepted
time: 25ms
memory: 3708kb

input:

1131
142
1123
119
1822
1352
318
1496
975
588
949
471
105
1643
1613
1915
640
1102
1687
1589
1392
964
653
1427
1470
1000
1571
134
922
832
1385
1995
1747
1789
1780
480
713
1892
14
1573
1270
1101
543
1132
1881
1908
144
394
675
1885
1949
659
707
803
80
937
1580
1376
379
203
1284
1580
980
567
804
793
1382...

output:

walk 584232614
walk 111542068
walk 969727665
walk 52666495
walk 800614528
walk 154619636
walk 247540027
walk 7030332
walk 582127631
walk 694877861
walk 723692887
walk 70948084
walk 702235606
walk 32287691
walk 325809608
walk 977588006
walk 154614949
walk 92466247
walk 793186137
walk 435921853
walk 4...

result:

ok OK, guesses=10000

Test #41:

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

input:

3287
563
3050
2160
3006
1667
2269
1490
2396
62
3026
3010
354
2386
1961
1189
129
12
560
2539
2587
3825
589
1158
3600
2568
3016
1312
2483
1646
190
1551
2710
1372
3807
3695
3638
3438
3970
2918
83
3915
1668
3062
2862
3934
900
3440
286
3653
2822
3194
886
1005
1276
1726
691
1211
3917
3713
2407
936
2441
7
...

output:

walk 250836977
walk 735025142
walk 918664148
walk 799318841
walk 684862345
walk 133951907
walk 823233029
walk 717246425
walk 9270162
walk 83173401
walk 816351546
walk 629771697
walk 61990963
walk 260183232
walk 866366937
walk 153138579
walk 124935028
walk 135656095
walk 790806520
walk 924950568
walk...

result:

ok OK, guesses=10000

Test #42:

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

input:

2622
6035
4845
2922
3272
3423
5239
2292
439
6557
1299
987
4297
6404
3397
266
4745
664
4496
4047
2643
6108
778
3797
3685
1635
1119
2234
1335
1837
1708
1176
282
6314
588
5325
1586
5537
6577
1366
5112
2624
3050
624
3561
5176
1311
2039
5067
666
5044
6651
4341
4184
4136
422
3798
5966
4337
980
6120
4739
6...

output:

walk 250836977
walk 735025142
walk 918664148
walk 799318841
walk 684862345
walk 133951907
walk 823233029
walk 717246425
walk 9270162
walk 83173401
walk 816351546
walk 629771697
walk 61990963
walk 260183232
walk 866366937
walk 153138579
walk 124935028
walk 135656095
walk 790806520
walk 924950568
walk...

result:

ok OK, guesses=10000

Test #43:

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

input:

905
2151
4491
6524
3030
940
3778
5928
6036
162
588
1414
1812
2482
51
177
4202
971
1207
5616
3728
544
3628
1825
2155
4898
2128
2884
1741
348
4991
5658
2185
3779
528
2076
6474
2922
2919
5967
4556
242
6119
2524
5581
4309
132
6509
5622
4
2393
1329
4539
5500
2191
4926
6311
6327
3592
692
1655
5508
5703
42...

output:

walk 250836977
walk 735025142
walk 918664148
walk 799318841
walk 684862345
walk 133951907
walk 823233029
walk 717246425
walk 9270162
walk 83173401
walk 816351546
walk 629771697
walk 61990963
walk 260183232
walk 866366937
walk 153138579
walk 124935028
walk 135656095
walk 790806520
walk 924950568
walk...

result:

ok OK, guesses=10000

Test #44:

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

input:

5734531
5236881
5091573
4804323
767723
6657028
7930669
7445937
5018380
4794548
651218
8523883
2125104
6932789
5232192
80138
8001788
1965112
4119774
8985303
4740806
4374291
8547974
5860669
5648925
1882963
1973008
8645495
2748693
6856397
4947925
1262319
8743452
7406532
4561502
2658950
657639
3271854
6...

output:

walk 70125392
walk 68160842
walk 844822450
walk 373426732
walk 602912607
walk 548734196
walk 282206782
walk 159017545
walk 501584783
walk 932167670
walk 416434876
walk 515247822
walk 862388001
walk 380991017
walk 616995931
walk 381447425
walk 786420732
walk 968638292
walk 8155699
walk 424157743
walk...

result:

ok OK, guesses=10000

Test #45:

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

input:

8833
3906028
4233685
9824414
7477368
6753274
939575
7592003
4973299
7351264
9701048
4208493
4754061
3537959
5142647
6387694
9796863
5195483
5430316
9426653
1508471
2377307
2669258
4926208
5485934
6509557
10206083
10378952
1075626
6815134
1144718
8247382
6123344
10393363
1217251
4283247
7963051
8346
...

output:

walk 70125392
walk 68160842
walk 844822450
walk 373426732
walk 602912607
walk 548734196
walk 282206782
walk 159017545
walk 501584783
walk 932167670
walk 416434876
walk 515247822
walk 862388001
walk 380991017
walk 616995931
walk 381447425
walk 786420732
walk 968638292
walk 8155699
walk 424157743
walk...

result:

ok OK, guesses=10000

Test #46:

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

input:

2597418
4332674
9407621
17107915
12773863
16568380
1485739
8957280
14761999
5011832
6032164
13231872
10845215
3226013
6904500
1967316
7912340
15835244
6954173
10709551
3516824
110401
13694004
16847303
17116961
8718091
18008665
8304892
7209940
8701774
7176576
7211781
18344353
9432066
13726558
1033546...

output:

walk 626683066
walk 114581866
walk 980141310
walk 748377335
walk 576348462
walk 830539384
walk 420629106
walk 559815185
walk 473226616
walk 376628067
walk 589042544
walk 623371805
walk 638961560
walk 696492288
walk 120317163
walk 28006032
walk 62670117
walk 368430093
walk 730890325
walk 732255073
wa...

result:

ok OK, guesses=10000

Test #47:

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

input:

590879
330233
376504
134465
295121
156374
756010
597277
2538
379451
45894
15736
208880
277576
573806
678335
495768
643033
190491
616878
119586
493601
234016
717454
29848
644318
184563
419882
378556
553985
747054
401236
632392
242029
740833
170474
639904
252114
244798
658570
291538
476727
111790
5805...

output:

walk 626683066
walk 114581866
walk 980141310
walk 748377335
walk 576348462
walk 830539384
walk 420629106
walk 559815185
walk 473226616
walk 376628067
walk 589042544
walk 623371805
walk 638961560
walk 696492288
walk 120317163
walk 28006032
walk 62670117
walk 368430093
walk 730890325
walk 732255073
wa...

result:

ok OK, guesses=10000

Test #48:

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

input:

32041464
48874291
2383638
8460316
21559930
52843253
11749550
26590628
8610732
31447086
39166818
35638448
2489366
23140094
27409585
2277051
23924263
39544171
32627482
7454770
54377429
44453094
26969542
32251966
41855855
19810183
49394361
4946838
47545984
39496352
30944109
10644643
44801258
38336489
4...

output:

walk 680032294
walk 513461137
walk 177877331
walk 264112415
walk 255193434
walk 664768240
walk 786396300
walk 516558034
walk 453620607
walk 519932526
walk 15393725
walk 434065865
walk 943670349
walk 495542882
walk 884320520
walk 213023702
walk 154592294
walk 797407667
walk 914145787
walk 379683684
w...

result:

ok OK, guesses=10000

Test #49:

score: 0
Accepted
time: 25ms
memory: 3704kb

input:

126837135
139844473
125871286
8836010
77870398
84473229
3128919
62410346
119653562
74298097
109621835
104645259
32002971
227207703
58683885
38671168
118314517
202605944
220821796
221246241
94627630
205269734
72398299
97848529
220177168
7991775
180596544
57298396
104881745
129018553
33517766
2199007
...

output:

walk 680032294
walk 513461137
walk 177877331
walk 264112415
walk 255193434
walk 664768240
walk 786396300
walk 516558034
walk 453620607
walk 519932526
walk 15393725
walk 434065865
walk 943670349
walk 495542882
walk 884320520
walk 213023702
walk 154592294
walk 797407667
walk 914145787
walk 379683684
w...

result:

ok OK, guesses=10000

Test #50:

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

input:

483663993
386153770
349578993
390208054
440263747
442524381
355458879
267024309
190181535
225363373
420585837
333980727
404697156
230159072
188656005
149459453
429853597
15520130
28935956
218250072
224721575
268457751
147690525
241973237
318896259
511900795
511613888
69765089
117359004
154608947
307...

output:

walk 680032294
walk 513461137
walk 177877331
walk 264112415
walk 255193434
walk 664768240
walk 786396300
walk 516558034
walk 453620607
walk 519932526
walk 15393725
walk 434065865
walk 943670349
walk 495542882
walk 884320520
walk 213023702
walk 154592294
walk 797407667
walk 914145787
walk 379683684
w...

result:

ok OK, guesses=10000

Test #51:

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

input:

269480158
657747167
792078125
392738000
909550215
756157449
844884916
603937563
818721064
396572168
744035013
797582384
771177159
27536513
410072449
913069565
446329689
898608742
752783007
519949601
914784216
525138797
48291342
478688854
511608512
216844567
724047332
771024952
436192233
289243514
33...

output:

walk 269480157
walk 388267009
walk 134330958
walk 524238110
walk 516812215
walk 770185469
walk 88727467
walk 682630882
walk 214783501
walk 501429339
walk 347462845
walk 53547371
walk 897173010
walk 179937589
walk 382535936
walk 502997116
walk 456838359
walk 452279053
walk 777752500
walk 690744829
wa...

result:

ok OK, guesses=10000

Test #52:

score: 0
Accepted
time: 30ms
memory: 3700kb

input:

185522582
187273005
128345670
72808901
9846237
6998534
95726001
5323711
26848919
141761672
102707931
156255302
87136847
73816143
69835493
186316023
63379503
129141970
133861298
51572955
59890984
14048921
74263115
118144041
108350469
157389880
84817766
89082156
98052793
101649137
100915587
1723048
77...

output:

walk 269480157
walk 388267009
walk 134330958
walk 524238110
walk 516812215
walk 770185469
walk 88727467
walk 682630882
walk 214783501
walk 501429339
walk 347462845
walk 53547371
walk 897173010
walk 179937589
walk 382535936
walk 502997116
walk 456838359
walk 452279053
walk 777752500
walk 690744829
wa...

result:

ok OK, guesses=10000

Test #53:

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

input:

43449206
74672480
167083546
194402584
154768802
233787341
84057526
234618107
35944133
142400313
178871548
47219550
197189797
139398840
161117037
54170815
83659279
33491190
104616743
82338733
200658543
18758354
168365367
175782500
2048267
138290696
30932765
39395112
124966219
135467667
153733735
1357...

output:

walk 508304011
walk 202360263
walk 204824815
walk 294324749
walk 105322853
walk 113128328
walk 865482379
walk 58082984
walk 30661207
walk 817122086
walk 538200124
walk 823560095
walk 443852417
walk 781399344
walk 215414700
walk 925841955
walk 556094222
walk 265249662
walk 987538855
walk 3052687
walk...

result:

ok OK, guesses=10000