QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#879827#9084. 掉进兔子洞ucup-team50270 1859ms499568kbC++201.4kb2025-02-02 15:52:142025-02-02 15:52:15

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 0
Wrong Answer
time: 1828ms
memory: 499328kb

input:

100000 100000
269 441 77 193 381 494 240 336 277 421 9 5 189 270 225 487 229 36 413 179 361 241 229 465 176 61 251 298 73 53 329 183 198 157 319 421 460 464 101 77 35 262 332 269 208 351 93 441 370 206 437 203 453 303 1 222 328 373 30 346 415 426 465 365 121 39 417 409 66 325 223 361 431 214 151 279...

output:

144388
13293
97496
102053
100301
53890
34050
88661
34355
38693
130673
45260
79369
35956
153101
42409
112434
51582
93374
40797
82217
45922
60897
72518
89660
100737
120457
31948
39283
42660
61697
96969
101425
14462
71926
87714
33970
63968
75112
59711
78656
91351
75168
16815
113073
93979
63036
83091
89...

result:

wrong answer 2nd lines differ - expected: '13287', found: '13293'

Test #2:

score: 0
Wrong Answer
time: 1822ms
memory: 499372kb

input:

100000 100000
275 452 230 141 333 414 386 1 169 73 121 279 367 31 111 37 269 288 455 375 285 461 401 231 227 484 196 63 191 147 156 249 416 69 384 281 13 198 46 373 481 336 342 206 342 1 89 129 276 438 462 398 32 28 199 285 216 301 201 15 495 371 4 53 181 5 407 185 173 445 489 461 236 245 96 201 442...

output:

123352
68873
97953
127351
71046
111133
60399
97971
36477
106783
130828
69946
31705
145621
71623
75866
61641
29356
37333
40271
36439
64009
57687
62467
27136
70342
52114
62047
110804
119941
15563
28825
71674
122340
56232
53461
87680
119242
93931
79927
37889
63215
95258
61238
107743
52230
92450
37730
1...

result:

wrong answer 1st lines differ - expected: '112681', found: '123352'

Test #3:

score: 0
Wrong Answer
time: 1822ms
memory: 499308kb

input:

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

output:

28578
44300
128728
72051
82599
61395
65165
43924
146709
62390
18111
112778
29776
96973
30149
27166
115252
55432
37800
140604
97233
73526
87515
61081
44649
65982
46480
56811
88777
123030
51328
53387
50564
98481
23881
92666
62207
39651
85529
53804
49110
120301
113357
59417
140410
109985
77021
68108
54...

result:

wrong answer 1st lines differ - expected: '19965', found: '28578'

Test #4:

score: 0
Wrong Answer
time: 1738ms
memory: 499548kb

input:

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

output:

90354
137995
91262
49445
21892
62852
42732
6734
177974
96407
24324
116253
22443
45836
13335
53428
90328
85898
79009
133568
64715
109188
85911
72384
75691
68271
117729
36866
67844
27505
66225
95178
57867
29580
66255
98289
49599
61646
96761
133048
81317
58075
65122
51086
76763
70072
157054
62219
85361...

result:

wrong answer 1st lines differ - expected: '14253', found: '90354'

Test #5:

score: 0
Wrong Answer
time: 1853ms
memory: 499568kb

input:

100000 100000
8223 758 2831 2021 2177 7231 4095 787 5306 200 1900 2746 1946 9540 3449 977 4821 3370 4777 5143 2101 8121 9134 3461 2371 7601 8121 5041 677 7281 9617 9661 377 2950 6961 8745 7801 581 9199 3789 551 2411 2001 1945 4941 6201 7624 3529 145 4049 3901 9492 6441 2361 7553 5481 2245 3524 4966 ...

output:

40156
74755
88928
41203
27974
118095
65799
101302
94001
114160
33772
109096
100382
92791
74259
94793
92006
109498
34019
63320
71674
106939
40580
112399
45548
16543
67738
72990
33868
55767
40507
34613
47706
44428
31937
55213
77006
61340
120897
76795
112418
95160
61142
57336
102863
74470
30660
59136
6...

result:

wrong answer 1st lines differ - expected: '39073', found: '40156'

Test #6:

score: 0
Wrong Answer
time: 1817ms
memory: 499368kb

input:

100000 100000
309 717 701 459 115 57 969 777 161 524 259 441 527 33 143 751 201 744 188 400 513 791 721 532 682 251 438 901 567 695 256 1 673 623 450 831 711 627 293 826 607 681 383 643 505 168 261 921 697 285 306 830 41 24 339 435 241 595 766 157 129 707 129 504 841 503 815 51 409 48 865 226 552 45...

output:

105190
96571
58946
100963
107356
109066
101534
64475
60038
131734
133082
36457
77622
66022
67103
45896
112227
77866
82950
16863
100347
98813
51408
124724
5507
15377
19633
111545
35030
48992
90147
122371
33922
75373
84796
93169
83643
58892
91593
82231
27703
57428
97176
100848
108663
116308
70397
7492...

result:

wrong answer 1st lines differ - expected: '80566', found: '105190'

Test #7:

score: 0
Wrong Answer
time: 1859ms
memory: 499432kb

input:

100000 100000
34231 63821 75393 2871 44801 62396 50481 5924 15785 66941 13093 60001 74205 28253 3946 85487 35865 99999 53992 96881 7707 15921 59505 88761 25775 73534 70337 3819 35590 36765 49501 67287 19666 3016 49987 84517 45051 8611 65234 49373 42419 27616 81173 50513 66879 70989 86550 87529 43057...

output:

142834
44315
106820
69669
54388
81656
108538
86686
55326
66836
85795
87705
80898
103489
67715
86297
65732
73608
34708
69379
100489
75211
103392
61868
96119
119675
50293
29136
112298
96942
30341
119342
94218
133450
76947
129826
37954
57688
90212
71912
107628
99772
65094
118864
106528
98699
71636
4256...

result:

wrong answer 1st lines differ - expected: '141751', found: '142834'

Test #8:

score: 0
Wrong Answer
time: 1824ms
memory: 499364kb

input:

100000 100000
11659 18861 53 65529 37 87112 7 91 61 56113 56 48 99598 58 91698 10961 92775 95 81 81697 43 43041 57091 82101 36 91 29 57 29601 41 93 74753 37 81 45 3 60679 93428 94585 13 13 55 13 49 29617 32967 13691 42571 19563 83095 6 81 21 44 9 13413 33199 73753 21 20 85 93 28339 11 60725 5 16 96 ...

output:

68807
37603
88832
16680
62081
62501
69009
73094
28764
109425
69023
107384
119302
78489
60350
39697
50177
90304
51543
62394
51619
113533
76443
105557
123004
47039
65579
68660
59902
80296
54366
80059
108622
36899
43228
110707
82877
86046
64992
79975
122435
2753
79262
65447
121675
42922
78858
64138
122...

result:

wrong answer 1st lines differ - expected: '68789', found: '68807'

Test #9:

score: 0
Wrong Answer
time: 1842ms
memory: 499440kb

input:

100000 100000
47831 353 7969 130 18636 92401 60065 41731 64683 67617 193 75170 7937 276 28811 81501 40571 42 345 176 48076 232 64223 98 22721 317 47885 37703 7075 14679 317 337 308 58139 66181 353 1 69626 49146 275 376 175 235 31353 85245 68181 89173 47833 9 310 73 97 273 89097 13141 271 205 22057 9...

output:

91121
35024
80251
89277
75358
44769
86728
75471
49961
46979
146444
51552
100299
60928
65033
82072
107196
58949
72900
79557
46461
48569
56135
85875
149552
89637
58876
98366
36876
55390
71346
104104
50470
103739
107095
31661
151927
64740
37616
30679
112763
50340
52390
119533
44647
131004
29549
26381
1...

result:

wrong answer 1st lines differ - expected: '91064', found: '91121'

Test #10:

score: 0
Wrong Answer
time: 1838ms
memory: 499440kb

input:

100000 100000
181 561 22939 211 37295 112 94306 7701 208 348 25377 487 631 98797 72011 51357 785 21 549 627 543 126 849 641 615 641 961 58466 2283 677 68071 351 346 751 489 99113 154 621 561 635 94261 91932 472 612 33 82 241 974 133 992 352 1 946 4141 146 23143 571 18747 74 693 813 233 659 953 450 3...

output:

152817
71078
73209
83663
85179
56400
71180
110936
67960
62727
35118
70992
75429
83868
83442
92801
62166
82107
91731
121726
12816
132892
135216
154147
78369
38070
111820
44328
93293
20047
73022
36317
37585
58531
72403
95583
25531
118275
62461
113544
56212
90457
86387
63218
79225
86484
79369
52273
101...

result:

wrong answer 1st lines differ - expected: '151977', found: '152817'