会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
wspl98765
博客园
|
首页
|
新随笔
|
新文章
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
下一页
2017年2月6日
靶形数独
摘要: 90 分#include#includeusing namespace std;int flag[99][99];int s=0;int a[9][9]={ {6,6,6,6, 6,6,6,6,6},{6,7,7,7, 7,7,7,7,6},{6,7,8,8, 8,8,8,7,6}...
阅读全文
posted @ 2017-02-06 11:44 wspl98765
阅读(218)
评论(0)
推荐(0)
编辑
清北学堂总结(未完待续。。。。。。。)
摘要: day1上午 1搜索: 先写出基本的搜索模板,然后将大小变量放入dfs返回值去,根据dfs中变量的数量开相应维数的数组,写出记忆化搜索,再根据边界条件和记忆化搜索写出dp。 2差值维护: #includeusing namespace std;int n;int m;int a...
阅读全文
posted @ 2017-02-06 10:00 wspl98765
阅读(170)
评论(0)
推荐(0)
编辑
2016年12月30日
洛谷p3372 线段树模版
摘要: 这里写链接内容#includeusing namespace std;int n,m;int a[230000];struct yuy{long long l,r,len,sum,add;}s[999999];void bu(int o,int l,int r){ s[o]....
阅读全文
posted @ 2016-12-30 21:19 wspl98765
阅读(107)
评论(0)
推荐(0)
编辑
SPFA模版
摘要: 这里写链接内容 70分。。。 w,s,flag数组爆10000#includeusing namespace std;int dis[19999];int n;//int pre[19999];int v,u;int flag[19999];int du[19999];int w[...
阅读全文
posted @ 2016-12-30 20:55 wspl98765
阅读(111)
评论(0)
推荐(0)
编辑
2016年12月23日
线段树 洛谷 p1531 I hate it(I hate it too)
摘要: 这里写链接内容 线段树模板 字符串是一个很诡异的问题。。。。#include#include#include#define q 200000using namespace std;int a[q+5],s[q>1); bu(o>1); if(inqr) return -...
阅读全文
posted @ 2016-12-23 16:45 wspl98765
阅读(166)
评论(0)
推荐(0)
编辑
2016年12月21日
01 背包找装满方案数 洛谷 p1164 小a点菜
摘要: #includeusing namespace std;int n,m;int f[9999];int a[9999];int main(){ scanf("%d%d",&n,&m); for(int i=1;i=a[i];j--) f[j]=f[j]+f[j-a...
阅读全文
posted @ 2016-12-21 15:57 wspl98765
阅读(117)
评论(0)
推荐(0)
编辑
01 找最大剩余体积 洛谷1049 装箱问题
摘要: #include#includeusing namespace std;int n,m;int f[20005];int a[99990];int main(){ scanf("%d%d",&m,&n); for(int i=1;i=a[i];j--) if(f[...
阅读全文
posted @ 2016-12-21 15:55 wspl98765
阅读(94)
评论(0)
推荐(0)
编辑
洛谷 p1880 石子合并 区间dp
摘要: 这里写链接内容 错误程序#include#includeusing namespace std;int n;int a[9999];int s[9999],f1[999][999]; int f2[999][999];int main(){ scanf("%d",&n); ...
阅读全文
posted @ 2016-12-21 14:30 wspl98765
阅读(113)
评论(0)
推荐(0)
编辑
2016年12月18日
石子合并 最大值
摘要: #include#includeusing namespace std;int n;int a[9999];int s[9999],f[9999][999]; int main(){ scanf("%d",&n); for(int i=1;i<=n;i++) { ...
阅读全文
posted @ 2016-12-18 11:20 wspl98765
阅读(297)
评论(0)
推荐(0)
编辑
清北学堂入学测试d
摘要: 清北学堂入学测试d 需要加回去啊啊啊啊啊啊!#include#includeusing namespace std;int n;int a[2000000];int min1=99999999;int t;int flag=1;int main(){ freopen("gfh...
阅读全文
posted @ 2016-12-18 09:52 wspl98765
阅读(98)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页
公告