#include <bits/stdc++.h> #include <queue> using namespace std; int main() { int a; while (cin >> a) { // 注意 while 处理多个 case priority_queue<long> maxheap; priority_queue<long, vector<long>, greater<>> minheap; long t, b; ...