摘要: 1020 月饼 (25 分) 月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计算可以获得的最大收益是多少。 注意:销售时允许取出一部分库存。样例给出的情形是这样的:假如我们有 3 种月饼,其库存量分别为 18、1 阅读全文
posted @ 2021-08-22 19:18 凸云 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1045 Favorite Color Stripe (30 分) Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in he 阅读全文
posted @ 2021-08-22 12:33 凸云 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1040 Longest Symmetric String (25 分) Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given Is 阅读全文
posted @ 2021-08-22 12:31 凸云 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1007 Maximum Subsequence Sum (25 分) Given a sequence of K integers { N1​, N2​, ..., NK​ }. A continuous subsequence is defined to be { Ni​, Ni+1​, ... 阅读全文
posted @ 2021-08-22 12:27 凸云 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1068 Find More Coins (30 分) Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a unive 阅读全文
posted @ 2021-08-22 12:22 凸云 阅读(70) 评论(0) 推荐(0) 编辑

谢谢打赏!