CF 1154E Two Teams (链表)

题目传送ios 题意分析: 两队轮流选人,每次选分最高的及左右各k个(不相邻!!!) 能够用数组模拟链表,每次选完人后,将区间两端相接web #include <iostream> #include <queue> using namespace std; const int maxn = 2e5 + 5; typedef pair<int, int> pii; priority_queue<p
相关文章
相关标签/搜索