UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#35542#44. colorzhangchi1004220ms14872kbC++1.2kb2018-11-02 13:26:532018-11-02 13:26:55

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

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

input:

1000 1000 1000 2
174 954 369 14 450 56 160 740 228 653 252 224 541 676 294 63 667 618 271 272 278 31...

output:

147
32
16
31
14
158
121
110
0
9
7
111
167
81
118
59
59
82
50
169
8
20
0
0
111
11
127
85
28
17
28
104...

result:

ok 1000 lines

Test #2:

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

input:

1500 1500 1500 3
595 107 387 279 110 982 665 1101 1107 1344 1137 887 906 987 1470 1074 396 1065 490 ...

output:

26
17
2
1
7
5
1
0
0
0
0
1
7
2
0
36
0
0
0
55
60
0
12
1
1
1
0
26
0
7
20
0
34
0
64
0
18
1
1
0
19
29
2
5...

result:

ok 1500 lines

Test #3:

score: 10
Accepted
time: 1ms
memory: 9420kb

input:

2000 2000 1000 4
353 897 563 722 315 845 767 634 46 964 367 28 292 746 127 126 988 87 32 274 263 165...

output:

1
18
0
86
0
41
0
2
0
0
0
0
9
0
0
51
6
9
0
1
0
0
73
2
27
0
8
0
2
4
10
0
6
19
47
2
37
0
0
9
0
1
0
2
0
...

result:

ok 2000 lines

Test #4:

score: 10
Accepted
time: 153ms
memory: 10568kb

input:

100000 100000 100000 1
42112 34627 10431 34709 74150 25747 21685 38206 39011 93701 11748 70830 46760...

output:

28867
7485
5504
36373
32078
23358
15299
21356
31927
17844
25637
30783
30695
19252
30545
17412
8659
2...

result:

ok 100000 lines

Test #5:

score: 10
Accepted
time: 178ms
memory: 10572kb

input:

100000 100000 100000 1
2466 57134 8833 43279 46157 7913 97557 77665 94299 32552 57304 21344 20064 63...

output:

25269
11623
28393
21417
10737
28506
15952
32088
19470
8401
22968
7818
31862
14169
9293
26228
30837
2...

result:

ok 100000 lines

Test #6:

score: 10
Accepted
time: 407ms
memory: 13704kb

input:

200000 200000 200000 1
190400 78813 157126 146851 169096 131884 160925 88728 77171 103480 88476 1909...

output:

40816
56203
7668
24240
51975
38215
62855
10067
17333
3643
12195
16895
55617
31768
29426
63690
20240
...

result:

ok 200000 lines

Test #7:

score: 10
Accepted
time: 1550ms
memory: 14872kb

input:

500000 500000 500000 1
229206 300074 217112 358136 135579 289384 409705 234786 190462 186802 269457 ...

output:

164990
101920
21013
52777
119483
17603
122488
20268
154562
138250
53941
176627
123738
27427
129176
1...

result:

ok 500000 lines

Test #8:

score: 10
Accepted
time: 196ms
memory: 10568kb

input:

100000 100000 50000 2
19733 9463 6843 2352 44909 46132 21117 5519 10390 4396 24205 29306 35383 31732...

output:

1409
564
955
7211
12765
2505
5691
11046
3691
8743
364
7080
7372
753
67
3889
449
8495
752
4121
7162
4...

result:

ok 100000 lines

Test #9:

score: 10
Accepted
time: 607ms
memory: 14092kb

input:

300000 300000 50000 6
9387 2115 24185 7349 35801 46967 8214 18380 25445 37854 46766 33969 20536 275 ...

output:

2949
142
7872
3
1531
6906
29
4520
3042
361
204
659
1588
4340
63
2585
1
5
145
7554
45
0
26
25
294
166...

result:

ok 300000 lines

Test #10:

score: 10
Accepted
time: 1128ms
memory: 14872kb

input:

500000 500000 50000 10
49489 39031 46271 6820 36273 1046 48861 3308 38557 12318 35235 14798 44556 48...

output:

0
5
46
3
68
0
2864
2433
0
0
4403
0
302
0
1561
2780
276
141
1
376
2494
104
0
809
0
0
2679
393
0
0
238...

result:

ok 500000 lines