Problem DescriptionThere are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).InputInput consists of a sequence o...
分类:
其他好文 时间:
2015-05-12 01:37:39
阅读次数:
110
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh...
分类:
其他好文 时间:
2015-05-12 01:33:52
阅读次数:
91
Problem DescriptionHave you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircl...
分类:
其他好文 时间:
2015-05-12 01:18:42
阅读次数:
123
Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations o....
分类:
其他好文 时间:
2015-05-11 17:42:01
阅读次数:
100
Who's in the MiddleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3136 Accepted Submission(s): 1...
分类:
其他好文 时间:
2015-05-11 12:34:11
阅读次数:
145
题目传送门1 /*2 求逆序数的四种方法3 */ 1 /* 2 1. O(n^2) 暴力+递推 法:如果求出第一种情况的逆序列,其他的可以通过递推来搞出来,一开始是t[1],t[2],t[3]....t[N] 3 它的逆序列个数是N个,如果把t[1]放到t[N]后面,逆序列个...
分类:
其他好文 时间:
2015-05-10 17:14:39
阅读次数:
133
题目:Problem Description大家都知道,手机号是一个11位长的数字串,同时,作为学生,还可以申请加入校园网,如果加入成功,你将另外拥有一个短号。假设所有的短号都是是 6+手机号的后5位,比如号码为13512345678的手机,对应的短号就是645678。现在,如果给你一个11位长的手...
分类:
移动开发 时间:
2015-05-09 11:31:29
阅读次数:
172
题目:Problem Description求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方”Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1int main(void) { unsigned int A, B, i, result; whi...
分类:
其他好文 时间:
2015-05-08 14:39:21
阅读次数:
102
题目:Problem Description给定一个日期,输出这个日期是该年的第几天。Input输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。Output对于每组输入数据,输出一行,表示该日期是该年的第几...
分类:
其他好文 时间:
2015-05-08 14:29:30
阅读次数:
103
并查集+最小生成树畅通工程Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19824Accepted Submission(s): 8449Prob...
分类:
其他好文 时间:
2015-05-08 14:23:54
阅读次数:
118