UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#99144#1420. 选课widsnoy1000ms984kbC++696b2020-02-22 21:47:252020-02-22 21:47:26

answer


详细

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

Test #1:

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

input:

7 4
2 2
0 1
0 4
2 1
7 1
7 6
2 2

output:

13

result:

ok single line: '13'

Test #2:

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

input:

4 2
0 1
0 3
0 4
1 9

output:

10

result:

ok single line: '10'

Test #3:

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

input:

2 2
0 1
0 1

output:

2

result:

ok single line: '2'

Test #4:

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

input:

2 1
0 1
0 2

output:

2

result:

ok single line: '2'

Test #5:

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

input:

5 3
0 5
0 5
0 1
3 6
3 6

output:

13

result:

ok single line: '13'

Test #6:

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

input:

100 64
10 7
99 5
13 3
0 1
96 1
19 5
34 9
9 9
21 1
30 2
3 7
9 6
0 1
77 4
28 6
68 7
44 5
14 5
46 6
71 ...

output:

436

result:

ok single line: '436'