上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 41 下一页
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=469 规律题,找到规律的话就不难了,但是找不到规律的话就不知道从何下手了。。。。。。 #include<stdio.h> #include<string.h> int main(){ int 阅读全文
posted @ 2015-01-11 00:46 wojiaohuangyu 阅读(6) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=914 二分法加贪心,不理解的可以上网上搜大神的。。。。。。 代码: #include<stdio.h> #include<string.h> #include<algorithm> usin 阅读全文
posted @ 2015-01-11 00:25 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=524 对字符串进行比较的一道题目 #include<stdio.h> #include<string.h> char str1[120],str2[120]; int havepoint(c 阅读全文
posted @ 2015-01-06 22:43 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=16 有好几天都没有做题目了,本来自己就太弱,还不勤加练习,沉沦了一段时间,想想还是做题好 ,那样的话,充实 这道题目用的是动态,感觉之前好像做过 代码: #include<stdio.h> 阅读全文
posted @ 2015-01-05 17:44 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=214 用之前的方法会超时,看了网上的大神的做法,要用到二分法,二分插入法 代码: #include<stdio.h> #include<string.h> #define min -9999 阅读全文
posted @ 2014-12-21 11:58 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=49 代码: #include<stdio.h> #include<string.h> #define max(a,b) a>b?a:b int main(){ int du[230],val 阅读全文
posted @ 2014-12-21 09:37 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
摘要: 题目链接: hdu 1513:http://acm.hdu.edu.cn/showproblem.php?pid=1513 nyoj 37:http://acm.nyist.net/JudgeOnline/problem.php?pid=37 nyoj 36:http://acm.nyist.net 阅读全文
posted @ 2014-12-20 20:32 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=171 动态规划 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int m 阅读全文
posted @ 2014-12-18 22:19 wojiaohuangyu 阅读(5) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=17 跟做的上一道题目几乎一样,关键地方的代码改一下就行了 代码: #include<stdio.h> #include<string.h> #include<algorithm> using 阅读全文
posted @ 2014-12-18 21:51 wojiaohuangyu 阅读(5) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=79 代码: #include<stdio.h> #include<string.h> int main(){ int dp[30],num[30]; int ans,temp,i,j,k,t 阅读全文
posted @ 2014-12-18 21:21 wojiaohuangyu 阅读(7) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 41 下一页