摘要: 题目描述: 给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 #include using namespace std;int main(){ int a[10005]; int count,i,j; int st... 阅读全文
posted @ 2015-03-05 18:36 泡面小王子 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Max SumProblem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,... 阅读全文
posted @ 2015-03-05 17:11 泡面小王子 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 问题描述:Ignatius bought a land last week, but he didn't know the area of the land because the land is enclosed by a parabola and a straight line. The pic... 阅读全文
posted @ 2015-03-04 16:17 泡面小王子 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 问题描述A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the... 阅读全文
posted @ 2015-03-04 10:45 泡面小王子 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 观察数列中每项除3的余数,分别是1,2,0,2,2,1,0,1,1,2,0.用数学归纳法可以证出这个规律(在此略过)发现每八项出现一次循环所以n满足n=8k+2或n=8k-2 (k是自然数) #include #include using namespace std; int main()... 阅读全文
posted @ 2015-03-03 22:08 泡面小王子 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 谈谈我对攻读计算机研究生的看法(转载的) 作者:eqingsheng 就我自己的理解,谈谈我对读研和软件学院的看法,不妥之处一笑了之即可。 如果... 阅读全文
posted @ 2015-02-26 19:30 泡面小王子 阅读(211) 评论(0) 推荐(0) 编辑
摘要: FatMouse' TradeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33703 Accepted Submission(s): 109... 阅读全文
posted @ 2015-02-26 18:56 泡面小王子 阅读(1400) 评论(0) 推荐(2) 编辑
摘要: #include#includechar a[1000][16];//建立二维数组static int b[1000];//建立存储对应字符串出现的次数int main(){ int i,j,max,n,m; while(scanf("%d",&n)!=EOF){ getchar(); if(n==... 阅读全文
posted @ 2015-02-25 17:59 泡面小王子 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very ... 阅读全文
posted @ 2015-02-23 18:11 泡面小王子 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目描述:读入两个小于100的正整数A和B,计算A+B.需要注意的是:A和B的每一位数字由对应的英文单词给出. 输入: 测试输入包含若干测试用例,每个测试用例... 阅读全文
posted @ 2015-02-23 10:14 泡面小王子 阅读(204) 评论(0) 推荐(0) 编辑