上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 54 下一页
  2023年10月20日
摘要: 基环树标记环上的点 https://www.luogu.com.cn/record/130531354 阅读全文
posted @ 2023-10-20 12:12 towboat 阅读(20) 评论(0) 推荐(0)
  2023年10月19日
摘要: 多次询问 给出x,给出任意点y满足 dis(x,y)==m 以直径端点为根,dfs 可以发现 至少有一个y 在这个路径上 https://www.luogu.com.cn/record/130467795 阅读全文
posted @ 2023-10-19 22:20 towboat 阅读(100) 评论(0) 推荐(0)
  2023年10月16日
摘要: https://www.luogu.com.cn/problem/AT_abc277_e 阅读全文
posted @ 2023-10-16 21:44 towboat 阅读(15) 评论(0) 推荐(0)
  2023年10月8日
摘要: 区间加法,询问区间 [ l , r ] 内小于 值 x 的元素个数 https://loj.ac/s/1907013 阅读全文
posted @ 2023-10-08 15:28 towboat 阅读(64) 评论(0) 推荐(0)
  2023年10月5日
摘要: 带权并查集板题 维护到根的距离 #include <iostream> #include <algorithm> #include <cstring> #include <vector> #include <queue> using namespace std; const int N =2e5+1 阅读全文
posted @ 2023-10-05 21:29 towboat 阅读(31) 评论(0) 推荐(0)
  2023年10月4日
摘要: 01bfs 跑完d1 ,d2 ( 单源最短路 枚举 中间点(去掉的点 #include <iostream> #include <algorithm> #include <vector> #include <queue> #include <map> using namespace std; con 阅读全文
posted @ 2023-10-04 20:39 towboat 阅读(31) 评论(0) 推荐(0)
  2023年10月3日
摘要: maintain block size: fa[fy]=fx; sz[fx]+=sz[fy],sz[fy]=0; 阅读全文
posted @ 2023-10-03 15:26 towboat 阅读(23) 评论(0) 推荐(0)
  2023年10月2日
摘要: :边权存储在dep较大的点,转化为点权问题 注意区间查询时,如果当前x,y在一条重链上时的情况 https://www.luogu.com.cn/problem/P1967 https://www.luogu.com.cn/problem/AT_abc294_g https://darkbzoj.c 阅读全文
posted @ 2023-10-02 18:32 towboat 阅读(28) 评论(0) 推荐(0)
  2023年9月25日
摘要: 点双 找到割点后 一直退栈 http://ybt.ssoier.cn:8088/problem_show.php?pid=1521 include <iostream> #include <algorithm> #include <cmath> #include <vector> #include< 阅读全文
posted @ 2023-09-25 22:13 towboat 阅读(43) 评论(0) 推荐(0)
  2023年9月24日
摘要: for( x: iter ) x为一个pair map<int,int> mp ; signed main(){ mp[3] =4 ; mp[33] =1; for(auto xx:mp) cout << xx.first<<' '<<xx.second <<endl; } 阅读全文
posted @ 2023-09-24 21:15 towboat 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 54 下一页