2022-08-15 10:35:14 +08:00

14 lines
334 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Problem A. Intervals
* https://vjudge.net/contest/509525#problem/A
### 题意
数轴上给定n个区间及区间至少要标记的点数每个整数一个点求至少要标记多少个点
### 做法
差分约束
### 关键词
差分约束、最短路、spfa
### 易错点
//n不是点数maxn才是
//漏了最后一个点
in[u]=0;//spfa的精髓 出队与再入队
### 工具箱
* 差分约束、最短路PPT