08 2023 档案

摘要:[拓扑排序](http://www.jzoj.cn/problem.php?cid=5807&pid=4 "拓扑排序") ``` #include using namespace std; vector g[1001]; priority_queue,greater > q; int rudu[10 阅读全文
posted @ 2023-08-04 15:55 黄浠锐 阅读(30) 评论(0) 推荐(0)
摘要:[图论强联通分量(tarjan)算法](http://www.jzoj.cn/problem.php?cid=5808&pid=3 "图论强联通分量(tarjan)算法") ``` #include using namespace std; int n,m,cnt,cntb,ans; vector 阅读全文
posted @ 2023-08-04 15:50 黄浠锐 阅读(21) 评论(0) 推荐(0)
摘要:[亲戚(数据加强)](http://www.jzoj.cn/problem.php?cid=5808&pid=7 "亲戚(数据加强)") ``` #include using namespace std; int parent[500001]; int n,m,p; int find(int x)/ 阅读全文
posted @ 2023-08-04 15:47 黄浠锐 阅读(5) 评论(0) 推荐(0)
摘要:[【USACO】热浪](http://www.jzoj.cn/problem.php?cid=5810&pid=4 "【USACO】热浪") ``` #include using namespace std; struct node { int u,dist; node(int _u,int _di 阅读全文
posted @ 2023-08-04 15:43 黄浠锐 阅读(28) 评论(0) 推荐(0)