摘要: Description Description 给定长度为n的正整数序列a1,a2,…,an。 令sum=ab1+ab2+…+abm,并且满足:ab1<ab2<…<abm;b1<b2<…<bm;1<=m<=n。 求最大的sum。 n<=1000,0<ai<=109 给定长度为n的正整数序列a1,a2 阅读全文
posted @ 2019-07-29 17:11 明霞 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Description Description Company A has N employees, this company has lots of departments around the country. The employees who belong to different depa 阅读全文
posted @ 2019-07-29 14:55 明霞 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Description Description The company have n(n<=100) long cables(the length is not necessarily the same),we assume that the length of every long cable i 阅读全文
posted @ 2019-07-29 11:02 明霞 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Description Description Children are taught to add multi-digit numbers from right-to-left one digit at a time. Many find the "carry" operation - in wh 阅读全文
posted @ 2019-07-29 10:01 明霞 阅读(180) 评论(0) 推荐(0) 编辑