![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心算法
文章平均质量分 66
Jack_zhuiyi
这个作者很懒,什么都没留下…
展开
-
Educational Codeforces Round 33 (Rated for Div. 2)
D. Credit Card time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputRecenlty Luba got a credit card and started to use it. Let’s consider原创 2017-11-25 13:22:42 · 347 阅读 · 0 评论 -
zcmu1040
1040: 二哥的困惑 ⅢTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 208 Solved: 80[Submit][Status][Web Board]DescriptionSuppose there are M people, including you, playing a special card game. At the beginnin...原创 2018-03-07 21:38:51 · 246 阅读 · 0 评论 -
patL2-003. 月饼
L2-003. 月饼 时间限制 100 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计算可以获得的最大收益是多少。注意:销售时允许取出一部分库存。样例给出的情形是这样的:假如我们有3...原创 2018-03-15 22:15:33 · 167 阅读 · 0 评论 -
zcmu1031
1031: GraveyardTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 178 Solved: 92[Submit][Status][Web Board]DescriptionProgramming contests became so popular in the year 2397 that the governor of New Earc...原创 2018-03-04 22:49:42 · 264 阅读 · 0 评论 -
C - 最长子串 FZU - 2128
问题很简单,给你一个字符串s,问s的子串中不包含s1,s2…sn的最长串有多长。 Input 输入包含多组数据。第一行为字符串s,字符串s的长度1到10^6次方,第二行是字符串s不能包含的子串个数n,n<=1000。接下来n行字符串,长度不大于100。字符串由小写的英文字符组成。Output 最长子串的长度 Sample Input lgcstraightlalongahi...原创 2018-03-20 12:03:12 · 225 阅读 · 0 评论 -
洛谷1031
题目描述 有 N 堆纸牌,编号分别为 1,2,…, N。每堆上有若干张,但纸牌总数必为 N 的倍数。可以在任一堆上取若干张纸牌,然后移动。移牌规则为:在编号为 1 堆上取的纸牌,只能移到编号为 2 的堆上;在编号为 N 的堆上取的纸牌,只能移到编号为 N-1 的堆上;其他堆上取的纸牌,可以移到相邻左边或右边的堆上。现在要求找出一种移动方法,用最少的移动次数使每堆上纸牌数都一样多。例如...原创 2018-04-11 17:50:25 · 169 阅读 · 0 评论