会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晴朗
浮躁的人容易问:我到底该学什么;----别问,学就对了; 浮躁的人容易问:c++有钱途吗;----建议你去抢银行; 浮躁的人容易说:我要中文版!我英文不行!----不行?学 呀! 浮躁的人分两种:只观望而不学的人;只学而不坚持的人; 浮躁的人永远不是一个高手。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
53
54
55
56
57
58
59
下一页
2013年8月16日
hdu 1563简单异或Find your present!
摘要: #includeint main(){int n,m,s;while(scanf("%d",&n),n) { s=0; while(n--) { scanf("%d",&m); s^=m; } printf("%d\n",s);}return 0;}
阅读全文
posted @ 2013-08-16 10:17 HYDhyd
阅读(82)
评论(0)
推荐(0)
2013年8月15日
贪吃蛇游戏(附源码)
摘要: #include #include #include #include const int maxn = 100; const int n = 20; struct node { int x, y; }; int map[maxn][maxn]; // 0表示空格,1表示蛇身,2表示...
阅读全文
posted @ 2013-08-15 20:23 HYDhyd
阅读(247)
评论(0)
推荐(0)
你必须非常努力,才能看起来毫不费力
摘要: 有一群人,他们积极自律,每天按计划行事,有条不紊;他们不张扬,把自己当成最卑微的小草,等待着人生开出花朵的那天。他们早晨5点多起来健身,你在睡觉;7点开始享受丰盛的早餐,蛋白质维生素淀粉粗纤维样样俱全,为新的一天起了一个好头,当他们收拾妥当准备开始一整天的工作时,你还在睡觉;他们用上午的高效时间完成...
阅读全文
posted @ 2013-08-15 20:07 HYDhyd
阅读(95)
评论(0)
推荐(0)
hdu 2795线段树
摘要: #include#define N 200005int h,w,n;struct node { int x,y,max;}a[N*3];int mmax(int e,int f) { return e>f?e:f;}void creattree(int t,int x,int y) { ...
阅读全文
posted @ 2013-08-15 16:44 HYDhyd
阅读(100)
评论(0)
推荐(0)
hdu 2167 状态压缩
摘要: /*与1565的解法差不多*/#include#includeint map[16][16];int dp[2][1b?a:b;}int main(){int m,i,j,k,max;m=0;for(i=0;i(1(1>1))continue;dp[p][h[j]]=Max(dp[p][h[j]],...
阅读全文
posted @ 2013-08-15 16:40 HYDhyd
阅读(135)
评论(0)
推荐(0)
hdu 1501 基本搜索深搜
摘要: #include#includechar s1[300],s2[300],s[500];int len1,len2,len3,flag,used[300][300];void dfs(int a,int b,int c) {if(flag)return ;if(c==len3) {flag=1;re...
阅读全文
posted @ 2013-08-15 16:29 HYDhyd
阅读(112)
评论(0)
推荐(0)
hdu 2126背包问题
摘要: /*有n件物品,旅客一共有m块大洋。第一个问题,旅客最多可以买多少件物品?请注意,这里是多少件,不是价值最大。所以这个非常好求,将所有的物品按照价值排序,先买便宜的,再买贵的。贪心的思想。这个地方有些细节需要处理,如果所有物品的价值总和比旅客的钱少,那么就只有一个方案,旅客可以买走所有的物品。如果旅...
阅读全文
posted @ 2013-08-15 14:57 HYDhyd
阅读(98)
评论(0)
推荐(0)
2013年8月14日
hdu 2686最小费用最大流问题
摘要: #include#include#includeusing namespace std;#define inf 0x7fffffffstruct node{ int u,v,w,f,next;}bian[20000];int dis[6000],pre[6000],head[6000],vis...
阅读全文
posted @ 2013-08-14 20:35 HYDhyd
阅读(104)
评论(0)
推荐(0)
hdu 1565 状态压缩dp
摘要: #include#includeint Max(int a,int b) { return a>b?a:b;}int dp[3][1limit) break; for(k=0;klimit) ...
阅读全文
posted @ 2013-08-14 20:31 HYDhyd
阅读(132)
评论(0)
推荐(0)
hdu 4539
摘要: #include#includeint dp[2][202][202];int s[202],c[202],origmap[202];int main() { int i,j,n,m; int ch; while(scanf("%d%d",&n,&m)!=EOF) { ...
阅读全文
posted @ 2013-08-14 20:30 HYDhyd
阅读(194)
评论(0)
推荐(0)
上一页
1
···
53
54
55
56
57
58
59
下一页
公告