会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小白QIU
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2022年3月17日
区间覆盖
摘要: #include <iostream>#include <algorithm>using namespace std;const int N=10010;int n;struct Range{ int l,r; bool operator<(const Range&W) const { return
阅读全文
posted @ 2022-03-17 14:19 小白QIU
阅读(29)
评论(1)
推荐(0)
2022年3月16日
区间分组
摘要: #include <iostream>#include <algorithm>#include <queue>using namespace std;const int N=100010;int n;struct Range{ int l,r; bool operator<(const Range&
阅读全文
posted @ 2022-03-16 17:29 小白QIU
阅读(47)
评论(1)
推荐(0)
2022年3月15日
区间选点/最大不相交区间数量
摘要: #include <iostream>#include <algorithm>#include <cstring>using namespace std;const int N=10010;int n;struct Range{ int l,r; bool operator<(const Range
阅读全文
posted @ 2022-03-15 21:19 小白QIU
阅读(25)
评论(0)
推荐(0)
计数问题
摘要: #include <iostream>#include <algorithm>#include <vector>using namespace std;int get(vector<int> num,int l,int r){ int res=0; for(int i=l;i>=r;i--) res
阅读全文
posted @ 2022-03-15 15:04 小白QIU
阅读(46)
评论(0)
推荐(0)
滑雪
摘要: #include <iostream>#include <cstring>#include <algorithm>using namespace std;const int N=310;int n,m;int h[N][N];int f[N][N];int dx[4]={-1,0,1,0},dy[4
阅读全文
posted @ 2022-03-15 13:32 小白QIU
阅读(19)
评论(1)
推荐(0)
没有上司的舞会
摘要: #include <iostream> #include <algorithm>#include <cstring>using namespace std;const int N=6010;int n;int happy[N];int h[N],e[N],ne[N],idx;int f[N][2];
阅读全文
posted @ 2022-03-15 12:00 小白QIU
阅读(25)
评论(0)
推荐(0)
2022年3月14日
最短hamilton路径
摘要: #include <cstring>#include <iostream>#include <algorithm>using namespace std;const int N=20,M=1<<N;int n;int w[N][N];int f[M][N];int main(){ cin>>n; f
阅读全文
posted @ 2022-03-14 21:31 小白QIU
阅读(26)
评论(0)
推荐(0)
蒙德里安的梦想
摘要: #include <iostream>#include <cstring>#include <algorithm>using namespace std;const int N=12,M=1<<N;int n,m;long long f[N][N];bool st[N];int main(){ wh
阅读全文
posted @ 2022-03-14 21:04 小白QIU
阅读(33)
评论(0)
推荐(0)
2022年3月13日
石子合并
摘要: #include <iostream>#include <iostream>using namespace std;const int N=1010;int n;int s[N];int f[N][N];int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>s
阅读全文
posted @ 2022-03-13 14:30 小白QIU
阅读(28)
评论(0)
推荐(0)
最长公共子序列
摘要: #include <iostream>#include <algorithm>using namespace std;const int N=1010;int n,m;char a[N],b[N];int f[N][N];int main(){ cin>>n>>m; cin>>a+1>>b+1; f
阅读全文
posted @ 2022-03-13 12:33 小白QIU
阅读(27)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告