UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#40111#94. travelcqbz_xyx10039ms1788kbC++757b2018-11-07 21:16:212018-11-07 22:39:29

answer


详细

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

Test #1:

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

input:

10 36
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
3 4
3 5
3 6
3 7
3 8
3 9
3 10
4 5
4 6
4 7
4 8
4 9
4 10
5 6
5 7...

output:

9

result:

ok single line: '9'

Test #2:

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

input:

10 15
2 3
3 7
4 2
5 8
7 6
8 4
9 1
9 2
9 3
9 4
9 5
9 6
9 7
9 8
9 10

output:

8

result:

ok single line: '8'

Test #3:

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

input:

100 4851
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 13
2 14
2 15
2 16
2 17
2 18
2 19
2 20
2 21
2 2...

output:

99

result:

ok single line: '99'

Test #4:

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

input:

100 195
2 6
4 43
5 69
6 93
7 65
8 37
9 29
10 89
11 16
12 26
13 70
14 13
15 57
16 82
17 72
18 50
19 1...

output:

98

result:

ok single line: '98'

Test #5:

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

input:

100 2466
1 3
1 7
1 9
1 11
1 14
1 16
1 19
1 20
1 21
1 23
1 30
1 31
1 36
1 39
1 43
1 44
1 45
1 46
1 47...

output:

56

result:

ok single line: '56'

Test #6:

score: 10
Accepted
time: 5ms
memory: 1496kb

input:

1000 50212
1 10
1 28
1 45
1 52
1 61
1 70
1 71
1 74
1 98
1 121
1 126
1 130
1 141
1 145
1 215
1 222
1 ...

output:

174

result:

ok single line: '174'

Test #7:

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

input:

1000 1995
2 421
3 782
4 494
5 531
6 690
7 400
8 687
9 625
10 359
11 325
12 598
13 229
14 161
15 408
...

output:

998

result:

ok single line: '998'

Test #8:

score: 10
Accepted
time: 10ms
memory: 1776kb

input:

1000 99429
1 8
1 23
1 28
1 30
1 34
1 44
1 51
1 54
1 59
1 66
1 68
1 71
1 73
1 83
1 90
1 93
1 96
1 97
...

output:

304

result:

ok single line: '304'

Test #9:

score: 10
Accepted
time: 11ms
memory: 1788kb

input:

1000 99683
1 5
1 9
1 13
1 14
1 15
1 16
1 19
1 20
1 43
1 45
1 47
1 49
1 57
1 65
1 67
1 71
1 75
1 77
1...

output:

292

result:

ok single line: '292'

Test #10:

score: 10
Accepted
time: 11ms
memory: 1784kb

input:

1000 100023
1 6
1 20
1 26
1 30
1 32
1 48
1 50
1 58
1 59
1 60
1 61
1 63
1 64
1 67
1 76
1 77
1 90
1 94...

output:

303

result:

ok single line: '303'