UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#133523#2093. 庆功会19100235ms1500kbC++11641b2021-07-15 15:41:242021-07-15 15:41:24

answer


Details

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

Test #1:

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

input:

19 107 2 3
1 2
1 3
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
2 3
2 4
2 5...

output:

16

result:

ok single line: '16'

Test #2:

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

input:

19 108 1 2
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 14
1 15
1 17
1 18
1 19
2 3
2 4
2 6
2 8
2...

output:

19

result:

ok single line: '19'

Test #3:

score: 10
Accepted
time: 32ms
memory: 1500kb

input:

500 82994 7 30
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 2...

output:

471

result:

ok single line: '471'

Test #4:

score: 10
Accepted
time: 34ms
memory: 1500kb

input:

499 82920 30 95
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 ...

output:

374

result:

ok single line: '374'

Test #5:

score: 10
Accepted
time: 34ms
memory: 1500kb

input:

498 82752 8 52
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 2...

output:

433

result:

ok single line: '433'

Test #6:

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

input:

497 82172 22 58
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 ...

output:

433

result:

ok single line: '433'

Test #7:

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

input:

496 81995 4 92
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 2...

output:

374

result:

ok single line: '374'

Test #8:

score: 10
Accepted
time: 30ms
memory: 1492kb

input:

495 81500 3 96
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 2...

output:

371

result:

ok single line: '371'

Test #9:

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

input:

494 81233 9 90
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 2...

output:

375

result:

ok single line: '375'

Test #10:

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

input:

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

output:

4

result:

ok single line: '4'