摘要:
题目链接:https://www.luogu.org/problemnew/show/P3393 被占领的点可以先连在一个点上然后只需要对这一个点bfs一遍就可以求所有的危险点 include define ll long long using namespace std; const int ma 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P4017 DAG + DP include include include include include using namespace std; const int maxn = 500010; const 阅读全文
摘要:
include include include include using namespace std; const int maxn = 505000; int n, m, dis[maxn], vis[maxn], ans; struct edge{ int from, to, next, le 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P2762 算是拍照那个题的加强下。 输入真的很毒瘤。(~~都这么说但好像我的过了?~~) include include include include include define ll long long u 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1402 菜 include include include include include using namespace std; const int maxn = 1e6 + 10; const int i 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1231 对于每本书只能用一次,所以拆点再建边 include include include include include using namespace std; const int maxn = 5000 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P2936 菜 include include include include include using namespace std; const int maxn = 10000; const int inf 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1343 菜 include include include include include using namespace std; const int maxn = 10000 + 10; const int 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P3275 把不等式 A B 转化成 A B = 1或者 B A include include include include define ll long long using namespace std; c 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1456 左偏树并查集不加路径压缩吧... include include include include using namespace std; const int maxn = 100000 + 10; s 阅读全文
摘要:
题目连接:https://www.luogu.org/problemnew/show/P3377 include include include include using namespace std; const int maxn = 300001 + 10; struct Left_Tree{ 阅读全文