994b专题

(简单贪心)CodeForces 994B-Knights of a Polygonal Table

(简单贪心)CodeForces 994B-Knights of a Polygonal Table   题目链接:B. Knights of a Polygonal Table 思路: 题目大意是有n个杀手,每个杀手最多能杀k个Power值比他小的人,给出n个杀手各自的Power值和Money数,问每个杀手最多能获得多少Money 定义一个结构体,内含杀手的原始索引(排序会