会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
1
2 3 4
Lesning
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
下一页
2019年10月26日
P2986 [USACO10MAR]伟大的奶牛聚集Great Cow Gat…
摘要: 典型树上dp,直接暴力算会超时,小心呀
阅读全文
posted @ 2019-10-26 14:32 Lesning
阅读(161)
评论(0)
推荐(0)
2019年10月24日
旅游规划--信息学一本通
摘要: bfs第一次写崩了,超时到怀疑人生
阅读全文
posted @ 2019-10-24 22:14 Lesning
阅读(178)
评论(0)
推荐(0)
2019年10月23日
网络流24题---- 汽车加油行驶问题
摘要: #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #include<queue> #include<vector> #define maxn 300100 using namespace std; const int N = 110; const int base = 20010; int n, k,
阅读全文
posted @ 2019-10-23 21:45 Lesning
阅读(136)
评论(0)
推荐(0)
div3的e题有点水呀
摘要: #include #include #include #include using namespace std; typedef long long ll; ll list[200010]; ll ans[200010]; ll g[200010]; ll f[200010]; int n,c; int main(){ scanf("%d %d",&n,&c); for(int i...
阅读全文
posted @ 2019-10-23 18:41 Lesning
阅读(166)
评论(0)
推荐(0)
鸽天的放鸽序列---牛客网
摘要: 学到了一份排列组合的公式
阅读全文
posted @ 2019-10-23 13:36 Lesning
阅读(268)
评论(0)
推荐(0)
2019年10月22日
CodeForces - 1239A
摘要: 推公式题,万万没想到斐波那契啊
阅读全文
posted @ 2019-10-22 14:31 Lesning
阅读(213)
评论(0)
推荐(0)
2019年10月21日
NOIP2009 压轴---最优贸易
摘要: 链接:https://ac.nowcoder.com/acm/contest/959/H来源:牛客网 C国有n个大城市和m条道路,每条道路连接这n个城市中的某两个城市。任意两个城市之间最多只有一条道路直接相连。这m条道路中有一部分为单向通行的道路,一部分为双向通行的道路,双向通行的道路在统计条数时也
阅读全文
posted @ 2019-10-21 19:27 Lesning
阅读(213)
评论(0)
推荐(0)
2019年10月17日
在加权无向图上求出一条从1号结点到N号结点的路径,使路径上第K+1大的边权尽量小
摘要: 二分+最短路算法
阅读全文
posted @ 2019-10-17 22:02 Lesning
阅读(386)
评论(0)
推荐(0)
好久没写题解了
摘要: 真的不会写的,累了,这题实在是太难了QAQ
阅读全文
posted @ 2019-10-17 11:49 Lesning
阅读(69)
评论(0)
推荐(0)
2019年10月12日
皇宫看守问题(带权树上独立集)
摘要: #include<cstdio> #include<iostream> #include<cstring> #include<algorithm> #include<vector> #define maxn 2100 using namespace std; vector<int>G[maxn]; void insert(int be, int en) { G[be].push_back(en);
阅读全文
posted @ 2019-10-12 18:48 Lesning
阅读(397)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
下一页
公告