会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
EM-LGH
I'll be on my own trip I'm out ya
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
108
109
110
111
112
113
114
115
116
···
120
下一页
2018年10月2日
洛谷T47092 作业 + 状压动归
摘要: 只要注意一下细节就毫无难点了,简简单单状态压缩即可。 Code:
阅读全文
posted @ 2018-10-02 11:14 EM-LGH
阅读(158)
评论(0)
推荐(0)
编辑
Codeforces Round #499 (Div. 2) C.FLY 数学推导_逆推
摘要: 本题应该是可以使用实数二分的,不过笔者一直未调出来,而且发现了一种更为优美的解法,那就是逆推。首先,不难猜到在最优解中当飞船回到 111 号节点时油量一定为 000, 这就意味着减少的油量等于减少之前的油量,即 fuel=mb1−1fuel=\frac{m}...
阅读全文
posted @ 2018-10-02 08:45 EM-LGH
阅读(174)
评论(0)
推荐(0)
编辑
2018年10月1日
Codeforces div2 #499 B. Planning The Expedition 大水题
摘要: 已经是水到一定程度了QAQ…Code:#include#include#includeusing namespace std;const int maxn = 105;int tp[maxn], idx[maxn], n,m, spare[maxn], cn...
阅读全文
posted @ 2018-10-01 16:14 EM-LGH
阅读(188)
评论(0)
推荐(0)
编辑
Lost Cows POJ - 2182 二分 + 树状数组
摘要: Code:#include#include#include#includeusing namespace std;const int maxn = 100000 + 233;int n, C[maxn], height[maxn];stackS;inline...
阅读全文
posted @ 2018-10-01 13:39 EM-LGH
阅读(106)
评论(0)
推荐(0)
编辑
洛谷P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows 状压动归
摘要: 考场上空间开大了一倍就爆0了QAQ…
阅读全文
posted @ 2018-10-01 13:37 EM-LGH
阅读(139)
评论(0)
推荐(0)
编辑
2018年9月30日
2018.9.30 ~ 2018.11.1 做题记录
摘要: 2018.10.1上午:参加模拟赛:T1:60pts乱搞T2. AC Lost Cows POJ - 2182 树状数组 + 二分T3:MLE 0分下午:AC P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows 状压动归 注意空...
阅读全文
posted @ 2018-09-30 22:07 EM-LGH
阅读(132)
评论(0)
推荐(0)
编辑
CF div2 499 A. Stages
摘要: Code:#include#include#includeusing namespace std;inline int get(char x){ return x - 'a' + 1;}int main(){ int n,k, arr[100], cn...
阅读全文
posted @ 2018-09-30 21:13 EM-LGH
阅读(114)
评论(0)
推荐(0)
编辑
2018年9月29日
随机数据生成
摘要: Code:
阅读全文
posted @ 2018-09-29 12:52 EM-LGH
阅读(95)
评论(0)
推荐(0)
编辑
2018年9月26日
洛谷P2296 寻找道路_简单BFS
摘要: Code:#include#include#includeusing namespace std;const int maxn = 200000 + 3;int head[maxnQ;inline void add_edge(int u,int v){ ...
阅读全文
posted @ 2018-09-26 19:52 EM-LGH
阅读(177)
评论(0)
推荐(0)
编辑
洛谷P3807 【模板】卢卡斯定理_组合数学模板
摘要: Code:
阅读全文
posted @ 2018-09-26 12:34 EM-LGH
阅读(103)
评论(0)
推荐(0)
编辑
上一页
1
···
108
109
110
111
112
113
114
115
116
···
120
下一页
公告