QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#304107#5011. Course Selectionezteam1#AC ✓7ms7276kbC++141.7kb2024-01-13 14:23:292024-01-13 14:23:29

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3788kb

input:

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

output:

9
3 
2 3 5 
1 2 3 4 6 

result:

ok All good..

Test #2:

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

input:

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

output:

5550







































































































































































































































































































...

result:

ok All good..

Test #3:

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

input:

1000 10000
15
14
32
65
28
96
33
93
48
28
57
20
32
20
90
42
57
53
18
58
94
21
27
29
37
22
94
45
67
60
83
23
20
23
35
93
3
42
6
46
68
46
34
25
17
16
50
5
49
91
23
76
69
100
58
68
81
32
88
41
64
29
37
13
95
25
6
59
74
58
31
35
16
80
13
80
10
59
85
18
16
70
51
40
44
28
8
76
8
87
53
86
28
100
2
73
14
100...

output:

37459
482 573 
112 143 710 525 
600 423 
576 888 573 
847 628 
535 395 121 482 
925 922 807 

301 669 751 763 
583 105 484 627 
498 437 781 
169 
468 786 523 
443 820 
582 224 
646 8 
722 

966 336 
482 537 930 
111 697 940 
970 328 

416 748 119 787 
17 479 
319 478 669 
54 559 
789 
786 
492 
176 ...

result:

ok All good..

Test #4:

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

input:

1000 10000
894
197
325
232
902
183
41
481
495
266
152
704
790
458
546
258
30
366
747
546
332
816
523
683
771
152
647
967
785
793
62
915
864
667
972
536
678
183
290
164
533
374
932
943
508
627
226
823
644
596
767
620
563
613
53
340
813
164
591
752
990
342
326
157
97
25
197
373
732
224
693
539
826
835...

output:

48828
71 55 976 544 
593 334 527 640 
955 169 886 437 55 
652 500 215 380 721 
328 161 788 653 507 
441 195 137 469 924 
656 83 265 1000 
227 831 514 803 695 
704 830 61 559 399 
266 374 425 271 555 
27 102 518 381 899 
3 38 527 842 73 
173 29 798 861 
285 532 2 668 370 
219 683 837 
121 382 790 384...

result:

ok All good..

Test #5:

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

input:

1000 10000
8581
6058
3019
2151
4140
4553
5920
9883
9170
318
1527
6945
5345
5007
6709
7960
7659
7507
7188
3939
4849
3336
7426
9064
4765
9262
9265
8162
8985
2298
9285
7280
9622
3652
3897
8691
4135
6185
682
2484
7107
8233
8426
9867
7526
314
574
2777
4928
5363
7617
9583
9748
8482
9103
1701
5339
951
4875...

output:

49909
873 732 30 69 650 
849 803 163 111 54 
724 528 77 374 727 
466 156 634 709 507 
77 687 581 123 922 
205 894 852 902 729 
384 677 377 699 388 
969 525 705 863 229 
444 387 532 973 335 
501 39 111 952 144 
482 606 809 720 571 
104 611 7 844 577 
233 969 794 822 378 
774 903 931 258 716 
289 278 ...

result:

ok All good..