UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#87983#1012. 细菌污染统计COdEtreE1001ms1204kbC++11923b2020-02-13 09:02:372020-02-13 09:02:39

answer


Details

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

Test #1:

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

input:

40
2
5 6
24 21

output:

18

result:

ok single line: '18'

Test #2:

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

input:

9
5
7 9
6 1
4 9
5 2
3 1

output:

27

result:

ok single line: '27'

Test #3:

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

input:

17
4
12 8
10 1
11 5
5 3

output:

33

result:

ok single line: '33'

Test #4:

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

input:

54
15
25 32
42 32
20 21
39 31
11 39
27 26
10 11
7 22
9 31
46 47
18 29
14 24
19 23
1 2
19 52

output:

130

result:

ok single line: '130'

Test #5:

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

input:

14
1
4 6

output:

9

result:

ok single line: '9'

Test #6:

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

input:

25
7
5 4
6 3
1 6
5 2
3 3
4 4
3 3

output:

31

result:

ok single line: '31'

Test #7:

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

input:

12
3
3 4
11 10
7 11

output:

27

result:

ok single line: '27'

Test #8:

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

input:

81
6
6 79
80 36
62 6
23 73
48 62
55 78

output:

54

result:

ok single line: '54'

Test #9:

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

input:

88
19
28 24
78 25
38 27
58 77
69 41
78 87
63 64
26 28
48 71
83 72
79 26
13 72
21 13
38 54
55 39
4 56...

output:

167

result:

ok single line: '167'

Test #10:

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

input:

50
11
35 30
44 21
21 44
39 35
3 16
17 21
27 5
48 44
15 26
29 36
43 39

output:

99

result:

ok single line: '99'