
洛谷
超越大哥哥
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
洛谷P2709(简单莫队)
#include<iostream> #include<cstdio> #include<math.h> #include<algorithm> using namespace std; const int maxn = 50005; typedef long long ll; ll c[maxn]; ll sum[maxn]; struct no...原创 2019-05-15 11:41:21 · 169 阅读 · 0 评论 -
luoguP1182(二分搜索)
好久没写二分搜索题了 这个题目大体意思就是给你一串数字 让你选出连续的m段数字使得和最大的数字段的和最小 就是二分答案 // // Created by xingchaoyue on 2019/5/15. // #include<iostream> #include<cstdio> using namespace std; int n,m; const int ...原创 2019-05-15 15:10:19 · 183 阅读 · 0 评论 -
luoguP1577(二分答案)
二分答案 写了一下就出来了...但是在二分那里卡住了 先po上代码 日后再解惑 // // Created by xingchaoyue on 2019/5/15. // #include<iostream> #include<cstdio> using namespace std; int n,m; int a[10000+100]; int ri = 0; i...原创 2019-05-15 16:08:56 · 243 阅读 · 0 评论 -
luogu k层图
k层图典型例题就是可以任意选取k条边使得他们权值变化 然后问最短路 // // Created by xingchaoyue on 2019/7/27. // #include<iostream> #include<cstdio> #include<queue> #include<string.h> using namespace std; ...原创 2019-07-27 18:51:27 · 202 阅读 · 0 评论