上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 41 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1015 #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; char zifu[2000],str[20],s 阅读全文
posted @ 2014-12-08 22:47 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: 题目链接:http://poj.org/problem?id=1338 丑数 #include<stdio.h> #include<string.h> int main(){ int i,j,k,t; int num[1510]; memset(num,0,sizeof(num)); int q2, 阅读全文
posted @ 2014-12-04 13:16 wojiaohuangyu 阅读(5) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=254 0-1背包问题 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int cmp(int a, 阅读全文
posted @ 2014-11-29 21:55 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
摘要: 正好我现在在玩数独这个游戏,看到这个问题我就来了兴趣,完成着这个问题,妈妈再也不用担心我玩数独游戏啦~~ 题目链接: http://acm.nyist.net/JudgeOnline/problem.php?pid=722 #include<stdio.h> int map[9][9]; int f 阅读全文
posted @ 2014-11-29 21:27 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1010 做这道题目的时候需要注意剪枝,如果没有剪枝的话,就会超时 注意奇偶剪枝 代码:】 #include<stdio.h> #include<string.h> #include<stdlib.h> c 阅读全文
posted @ 2014-11-29 11:00 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=58 比较简单的搜索题目, 代码: #include<stdio.h> #include<string.h> int map[9][9]={{1,1,1,1,1,1,1,1,1},{1,0,0 阅读全文
posted @ 2014-11-29 10:51 wojiaohuangyu 阅读(6) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2152 母函数: 代码: #include<stdio.h> #include<string.h> int main(){ int c1[120],c2[120],min[120],max[120]; i 阅读全文
posted @ 2014-11-26 22:37 wojiaohuangyu 阅读(12) 评论(0) 推荐(0)
摘要: 简单的背包题 ;好无奈,我又没做出来在考试的时候 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; double dp[60],money[60]; double total; int 阅读全文
posted @ 2014-11-26 13:18 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1241 简单的深搜,但是我花了两个小时都没没有做出来,说出来都是泪啊 代码: #include<stdio.h> #include<string.h> #include<algorithm> using 阅读全文
posted @ 2014-11-25 11:39 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: Problem Description Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Creek in central 阅读全文
posted @ 2014-11-22 21:39 wojiaohuangyu 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 41 下一页