摘要: 原题链接 题解:注意建立边 代码: #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; const int N = 5e3 + 9; const int M 阅读全文
posted @ 2021-04-11 12:25 u_yan 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 原题链接 题解:不要看到多重关系就慌张,其实本质上还是一对一对的关系,所以要提取出来,关键不得不做的信息,然后建图。 代码: #include <iostream> #include <algorithm> #include <cstring> using namespace std; const 阅读全文
posted @ 2021-04-11 11:32 u_yan 阅读(35) 评论(0) 推荐(0) 编辑