![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
greedy
文章平均质量分 80
_FSMM
这个作者很懒,什么都没留下…
展开
-
【CodeForces 777E】 Hanoi Factory(贪心+sort+模拟)
E. Hanoi Factorytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOf course you have heard the famous task原创 2017-02-25 15:51:06 · 917 阅读 · 0 评论 -
【CodeForces 777B】Game of Credit Cards(贪心+排序)
Game of Credit CardsProblem DescriptionAfterthe fourth season Sherlock and Moriary have realized the whole foolishness ofthe battle between them and decided to continue their competiti原创 2017-02-25 09:51:56 · 1311 阅读 · 0 评论 -
【CodeForces 779C】Dishonest Sellers(贪心)
C. Dishonest Sellerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIgor found out discounts in a原创 2017-02-26 18:48:13 · 445 阅读 · 0 评论 -
【CodeForces 797C】Minimal string(贪心+字符串)
C. Minimal stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya recieved a gift of a string s with length原创 2017-05-03 07:59:20 · 494 阅读 · 0 评论 -
【CodeForces 830A】Office Keys
A. Office Keystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n people and k keys on a straight li原创 2017-07-24 18:13:18 · 435 阅读 · 0 评论 -
【HDU 6034】Balala Power!(贪心+进制转换)
题目:hdu6034题意:n个字符串,给每个字母一个权值(0~25),将每个字符串转换为26进制的数,求如何加权使所有数的和最大思路:每个数在不同位置的贡献不同,记录下每个字母在不同位置出现的次数,大于25时进位(次数大于26时会变成26*26^k==26^(k+1)),转换成一个26进制数,然后排序,给最大的数赋值25,以此类推,注意有前导0时将其和前一个交换。(参考了别人的代码orz)原创 2017-07-26 13:04:02 · 238 阅读 · 0 评论