会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
vactor
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
17
18
19
20
21
2014年8月6日
poj_3071概率dp
摘要: 确定好对手就简单了。#include#include#include#includeusing namespace std;double a[150][150];double dp[9][150];int n;void solve(){ memset(dp,0,sizeof(dp)); ...
阅读全文
posted @ 2014-08-06 22:28 JarvisLau
阅读(114)
评论(0)
推荐(0)
2014年6月5日
hdu_2191多重背包
摘要: 用二维数组解的,因为忘了memset害我wa了好几发。。。#include#include#include#includeusing namespace std;int n,m;int dp[120][120];int v[120],w[120],num[120];int maxn(int a,in...
阅读全文
posted @ 2014-06-05 16:46 JarvisLau
阅读(129)
评论(0)
推荐(0)
2014年5月28日
poj_1185状压dp
摘要: 用二维数组写了好久,失败啊。。#include#include#include#includeusing namespace std;int n,m;int dp[110][110][110];char st[110][12];int s[110],an[110],as[110];int conve...
阅读全文
posted @ 2014-05-28 21:21 JarvisLau
阅读(119)
评论(0)
推荐(0)
poj_1952最大下降子序列,统计个数
摘要: 其实不算难的一道题,但憋了我好久,嗯,很爽。#include#include#include#includeusing namespace std;int n;int a[5010],dp[5010],s[5010];void solve(){ s[0]=1; int maxn=0; ...
阅读全文
posted @ 2014-05-28 21:16 JarvisLau
阅读(218)
评论(0)
推荐(0)
2014年5月20日
poj_3468线段树成段更新求区间和
摘要: #include#include#includelong long num[100010];using namespace std;struct st{ int l; int r; long long sum; long long a;} p[400100];void bu...
阅读全文
posted @ 2014-05-20 14:21 JarvisLau
阅读(125)
评论(0)
推荐(0)
2014年5月7日
hdu_4707
摘要: 算是水题一道吧,我也没有建树,看别人又用vector,又用bfs,dfs的,对vector不熟,所以就模拟了一下#include#include#includeusing namespace std;int a[100005];int main(){ int t;cin>>t; whil...
阅读全文
posted @ 2014-05-07 06:33 JarvisLau
阅读(131)
评论(0)
推荐(0)
2014年5月5日
uva_644暴力加字典树解法
摘要: 暴力#include#include#includeusing namespace std;int main(){ int t=0,i=0; char s[10][12]; bool a[12][12]; memset(s,'\0',sizeof(s)); while(...
阅读全文
posted @ 2014-05-05 20:36 JarvisLau
阅读(162)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
公告