• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Codjjj
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2021年10月5日

线段树+扫描线+离散化
摘要: 亚特兰蒂斯 #include <iostream> #include <cstring> #include <algorithm> #include<vector> using namespace std; typedef pair<int, int> PII; const int N = 1e4 阅读全文
posted @ 2021-10-05 16:22 _Codjjj 阅读(10) 评论(0) 推荐(0)
 
用LCA解次小生成树问题
摘要: 次小生成树 用lca求出每个非树边的路径中的边的最小值和次小值(因为要求的是严格次小生成树),这里有求次小的经典模板。 #include <iostream> #include <cstring> #include <algorithm> #define LL long long using nam 阅读全文
posted @ 2021-10-05 10:34 _Codjjj 阅读(52) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3