随笔分类 -  数据结构

c++课程设计(日历)
摘要:今天比较无聊,就随便找了个程序设计来做,下面是源代码,以及效果图...不喜请喷!/*题目1:年历显示。功能要求:(1) 输入一个年份,输出是在屏幕上显示该年的日历。假定输入的年份在1940-2040年之间。(2) 输入年月,输出该月的日历。(3) 输入年月日,输出距今天还有多少天,星期几,是否是公历节日。*/ 1 //日历 2 // Coder @Gxjun 2014/3/30/10:35 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 namespace isprime... 阅读全文

posted @ 2014-03-30 15:09 龚细军 阅读(4526) 评论(3) 推荐(0)

HDUOJ ---1423 Greatest Common Increasing Subsequence(LCS)
摘要:Greatest Common Increasing SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3460Accepted Submission(s): 1092Problem DescriptionThis is a problem from ZOJ 2432.To make it easyer,you just need output the length of the subsequence.InputEach 阅读全文

posted @ 2014-03-29 20:50 龚细军 阅读(239) 评论(0) 推荐(0)

HDUOJ----4004The Frog's Games(二分+简单贪心)
摘要:The Frog's GamesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 3263Accepted Submission(s): 1596Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Tr 阅读全文

posted @ 2014-03-16 17:44 龚细军 阅读(496) 评论(0) 推荐(0)