摘要: Problem DescriptionCalculate S(n).S(n)=13+23+33+......+n3.InputEach line will contain one integer N(1 // 运用数学公式:1^3 +2^3 +3^3 +……+n^3 =[n(n+1)/2]^2... 阅读全文
posted @ 2014-10-29 16:07 zqxLonely 阅读(394) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThis problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For ex... 阅读全文
posted @ 2014-10-29 13:48 zqxLonely 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Problem Descriptionwe define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26;Give you a letter x and a number y , you should outpu... 阅读全文
posted @ 2014-10-29 00:48 zqxLonely 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThere are many lamps in a line. All of them are off at first. A series of operations are carried out on these lamps. On the i-th op... 阅读全文
posted @ 2014-10-29 00:32 zqxLonely 阅读(254) 评论(0) 推荐(0) 编辑