
codeforce 练习
nefu__lian
这个作者很懒,什么都没留下…
展开
-
codeforce Education 92 div2
codeforce Educaton 92 div2 题目链接文章目录B. Array Walk (贪心)C. Good String (思维+构造)B. Array Walk (贪心)Descripritiont 组数据,每次给n,k,z, 分别代表n个数,k次位移,最多向左位移 的次数z,初始在 1 位置 并得到 第一个数的价值, 问 k 次位移后 获得的最大价值 是多少Solution显然最多 从 1 走到 k+1 位置,贪心的考虑, 若z 不为0 ,则可以向左走, 我们原创 2020-10-19 20:21:23 · 155 阅读 · 0 评论 -
codeforce 402 div2 ABCDE
codeforce 402 div2 题目链接文章目录A. Pupils Redistribution (思维)B. Weird Rounding (贪心)C. Dishonest Sellers (贪心)D. String Game (字符串的 子序列问题)E. Bitwise Formula (二进制的位操作)A. Pupils Redistribution (思维)Descriprition给两组 数,每组n 个 数字,每次选1组 的数字和 2组的数字 进行交换,原创 2020-10-06 12:21:24 · 343 阅读 · 0 评论 -
codeforce 401 div2 ABCED
codeforce 401 div2 题目链接文章目录A - Shell Game (思维)B - Game of Credit Cards (贪心)C - Alyona and Spreadsheet (dp)D - Cloud of Hashtags (字符串排序)E - Hanoi Factory (贪心+单调栈)A - Shell Game (思维)Descriprition给 0,1,2, 3个盒子 ,盒子按照 奇数次移动时,0与1 交换位置, 偶数原创 2020-09-30 17:10:45 · 253 阅读 · 0 评论