
ACM_贪心
Rotepad
语言表述能力不行,在前面解释的不清,但是在代码中基本上每一个难懂的语句都在旁边有注释进行解释。
因为个人习惯带着代码去看题解,所以习惯把题解切入代码中,所以希望大家不要看到没什么解释就不看了,实际上后面的代码写的很详细
展开
-
Codeforces-348A-Mafia(二分 or 贪心)
题目:outputstandard outputOne daynfriends gathered together to play "Mafia". During each round of the game some player must be the supervisor and othern - 1people take part in the game. For eac...原创 2019-07-22 16:13:45 · 264 阅读 · 0 评论 -
Codeforces-864D-Make a Permutation!
题目:Ivan has an array consisting ofnelements. Each of the elements is an integer from1ton.Recently Ivan learned about permutations and their lexicographical order. Now he wants to change (repl...原创 2019-07-22 16:51:26 · 142 阅读 · 0 评论 -
CodeForces - 721D - Maxim and Array (贪心+优先队列)
题目:Recently Maxim has found an array ofnintegers, needed by no one. He immediately come up with idea of changing it: he invented positive integerxand decided to add or subtract it from arbitrary...原创 2019-08-09 00:24:31 · 264 阅读 · 0 评论