上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 42 下一页
摘要: Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of ... 阅读全文
posted @ 2014-10-30 21:15 zqxLonely 阅读(275) 评论(0) 推荐(0)
摘要: Problem DescriptionA 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 t... 阅读全文
posted @ 2014-10-30 14:02 zqxLonely 阅读(252) 评论(0) 推荐(0)
摘要: Problem 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,5,4,-7)... 阅读全文
posted @ 2014-10-30 12:51 zqxLonely 阅读(319) 评论(0) 推荐(0)
摘要: 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 阅读(412) 评论(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 阅读(239) 评论(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 阅读(245) 评论(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 阅读(270) 评论(0) 推荐(0)
摘要: Problem DescriptionGive you the width and height of the rectangle,darw it.InputInput contains a number of test cases.For each case ,there are two numb... 阅读全文
posted @ 2014-10-28 23:59 zqxLonely 阅读(271) 评论(0) 推荐(0)
摘要: Problem DescriptionGive you a number on base ten,you should output it on base two.(0 2 3 int main(){ 4 int number; 5 char result[20]; 6 ... 阅读全文
posted @ 2014-10-28 22:33 zqxLonely 阅读(385) 评论(0) 推荐(0)
摘要: Problem Description你活的不容易,我活的不容易,他活的也不容易。不过,如果你看了下面的故事,就会知道,有位老汉比你还不容易。重庆市郊黄泥板村的徐老汉(大号徐东海,简称XDH)这两年辛辛苦苦养了不少羊,到了今年夏天,由于众所周知的高温干旱,实在没办法解决牲畜的饮水问题,就决定把这些羊... 阅读全文
posted @ 2014-10-28 21:33 zqxLonely 阅读(327) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 42 下一页