摘要: 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 @ 2015-05-10 23:17 御心飞行 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 描述在一个3*2的矩形中,可以找到6个1*1的矩形,4个2*1的矩形3个1*2的矩形,2个2*2的矩形,2个3*1的矩形和1个3*2的矩形,总共18个矩形。给出A,B,计算可以从中找到多少个矩形。输入本题有多组输入数据(/*对于3*2矩形,计算为 3*(1+2) 2*(1+2) 1*(1+2),... 阅读全文
posted @ 2015-05-10 01:37 御心飞行 阅读(146) 评论(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 @ 2015-05-10 01:27 御心飞行 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main() 7 { 8 cout ::max)();11 cout ::min)() ::max)();14 cout ::min)() :... 阅读全文
posted @ 2015-05-10 00:14 御心飞行 阅读(656) 评论(0) 推荐(0) 编辑