会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
LegendN
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
2020年7月22日
线段树模板2 洛谷p3373
摘要: 题目链接:https://www.luogu.com.cn/problem/P3373 本题思路主要也是借鉴了洛谷题解区的方法 通过建立两个标签,tag1用于加法记忆,tag2用于乘法记忆 关键是注意两个运算标签的处理 当个简单模板康康 1 #include<bits/stdc++.h> 2 #de
阅读全文
posted @ 2020-07-22 22:06 LegendN
阅读(141)
评论(0)
推荐(0)
2019年12月17日
hdu1257 最少拦截系统
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1257 #include<iostream>#include<math.h>#include<algorithm>#include<string>#include<string.h>using namespace
阅读全文
posted @ 2019-12-17 21:03 LegendN
阅读(126)
评论(0)
推荐(0)
2019年12月5日
树的重心(DFS)
摘要: #include<iostream>#include<algorithm>#include<string.h>#include<vector>#include<cmath>using namespace std;const int maxn=1e5+10;vector<int>v[maxn];int
阅读全文
posted @ 2019-12-05 23:22 LegendN
阅读(283)
评论(0)
推荐(0)
2019年12月4日
树的直径(BFS)
摘要: #include<iostream>#include<algorithm>#include<string.h>#include<queue> #include<cmath>using namespace std;int data[20][20];int route[20];bool vis[20];
阅读全文
posted @ 2019-12-04 12:44 LegendN
阅读(275)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
公告