爬山(不考虑hack数据)

This commit is contained in:
2025-04-11 10:43:58 +08:00
parent 1388ed8187
commit 624f8fef3f

View File

@@ -1,7 +1,8 @@
// 爬山
// 爬山(不考虑hack数据)
#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
// 贪心 + 堆维护最值, 时间复杂度 O(nlogn)
int main(){
priority_queue<int> pq; // 大根堆
int n, p ,q; cin >> n >> p >> q;