你人没了
你人没了
全部文章
acm
fft(1)
博弈(1)
心绪(2)
日记(1)
未归档(54)
树状数组(2)
鸟哥的私房菜(服务器篇)(2)
归档
标签
去牛客网
登录
/
注册
你人没了的博客
全部文章
/ acm
(共47篇)
K-th number
主席树 超强板子 #include<cstdio> #include<vector> #include<iostream> #include<algorithm> using namespace std; const int maxn=1e5+6...
2019-04-06
0
355
一级棒!
树链剖分 改了好几次,发现-1比0跑的快,同时加读入优化可以节省约1000ms。 #include<cstdio> #include<iostream> #include<cstring> using namespace std; const int MAXN=...
2019-04-06
0
357
线段树lcis
代码不规范,调到泪目 保留区间的左端点和右端点权值,以区间左端点为起点的最长递增序列长度 以区间右端点为终点的最长递增序列长度 区间的最大递增序列长度 #include<cstdio> #include<iostream> #define ll long long u...
2019-04-03
0
340
dijstra一定要加堆优化+邻接表鸭鸭鸭鸭!!
血的教训 #include<cstdio> #include<iostream> #include<vector> #include<cstring> #include<queue> const int inf=0x3f3f3f3f; c...
2019-03-30
0
319
计数
类似数位dp #include<cstdio> #include<cstring> #define LL long long using namespace std; char str[10000]; int n; LL cnt[10000],v[10000]; LL d...
2019-03-29
0
262
学习数位dp
明七暗七 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 题目描述 今天是个特殊的日子,CSL和他的小伙伴们围坐在一张桌子上玩起了明七暗七的游戏。游戏规则是这样的: 一个人报出一个起始数,接下来按照逆时...
2019-03-26
0
310
dp
今天复习了一下dp, dp实质上是记忆化的搜索,可参考https://blog.csdn.net/baidu_28312631/article/details/47418773 重新理解了一下01背包二维转一维 for(int i=1;i<=n;i++) for(int j=n;j>=...
2019-03-25
0
292
托米去购物
初看还以为是那啥最大闭合子图,然而只是跑一下网络流 #include<bits/stdc++.h> #define inf 0x3f3f3f3f using namespace std; typedef long long ll; const int N=1e5+50; const i...
2019-03-23
0
280
K-th Number
自己写的judge函数太丑了,还是错的 //类似滑动窗口 bool judge(int x){ int ans=0;int i;int cnt=0; for (i=1;i<=n;i++) { if(a[i]>=x) cnt++; if (cnt&g...
2019-03-23
0
318
cf R62 A
调了很久,出了各种各样的错 #include<cstdio> #include<algorithm> using namespace std; int a[1000000]; int main(){ int n; int mx=0; scanf("%d&qu...
2019-03-23
0
329
首页
上一页
1
2
3
4
5
下一页
末页