![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
枚举
文章平均质量分 82
Borrrrrrrrrrrram
这个作者很懒,什么都没留下…
展开
-
HDU-4476 Cut the rope (枚举、前缀和)
枚举计数。题意:1e5根长度范围为1e5的绳子,每根绳子最多可以切一次,求最多可以得到的长度相同的绳子。原创 2017-10-10 21:32:40 · 1628 阅读 · 0 评论 -
EOJ Monthly 2017.12 (暨 ECNU 12 月内部选拔)B. 在哈尔滨的寒风中 (xjbg)
找规律的一道题,可能有结论。。题意:一张棋盘上,一个棋子只可以走马步,起点随意,问有多少个无序对,对于该棋子存在一条路径可以从一点走到另一点。原创 2017-12-08 21:53:36 · 474 阅读 · 0 评论 -
【Educational Codeforces Round 33】 B. Beautiful Divisors (枚举)
简单的枚举题。定义美丽的数字是其二进制前面k个1后面k-1个0。给一个数字n,问最大美丽因子是多少。原创 2017-11-24 12:49:53 · 522 阅读 · 0 评论 -
今日头条2018校招算法方向(第一批)编程题2(枚举)
时间限制:3秒 空间限制:131072K 给定一个数组序列, 需要求选出一个区间, 使得该区间是所有区间中经过如下计算的值最大的一个: 区间中的最小数 * 区间所有数的和最后程序输出经过计算后的最大值即可,不需要输出具体的区间。如给定序列 [6 2 1]则根据上述公式, 可得到所有可以选定各个区间的计算值: [6] = 6 * 6 = 36; [2原创 2018-01-16 22:29:15 · 1724 阅读 · 0 评论 -
Codeforces Round #468 (Div. 2, based on Technocup 2018 Final Round)E. Game with String(枚举)
E. Game with Stringtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya and Kolya play a game with a string, using the following rules. Initially...原创 2018-03-05 22:14:53 · 500 阅读 · 0 评论