个人介绍
增加 6 行删除 29 行
12345678910111213141516171819202122232425262728293031323334353637383923 行未改动636465666768697071351 行未改动全部展开```#include<bits/stdc++.h>using namespace std;const int N=1e5+10;struct sshop{int w,lim;}shop[N];int a[N],nei[N];int now,ans;signed main(){ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);cin>>n>>m>>r;for(int i=1;i<=n;i++)cin>>a[i];for(int i=1;i<=m;i++){int x,y;cin>>x>>y;shop[i]=(sshop){x,y};}for(int i=1;i<=r;i++)cin>>nei[i];sort(a+1,a+n+1,[&](int A,int B){return A>B;});sort(nei+1,nei+r+1,[&](int A,int B){return A>B;});sort(shop+1,shop+m+1,[&](sshop A,sshop B){return A.w>B.w;});r=min(r,n);for(int i=1;i<=r;i++){now+=nei[i];}ans=now;for(int i=1;i<=n;i++){}return 0;}```寂寞城市又再探戈 || 天地浩然之间 生命本该风雅https://cdn.luogu.com.cn/upload/image_hosting/ao7ywd1e.pnghttps://cdn.luogu.com.cn/upload/image_hosting/rel0rorx.webp我相信你的笑容,纵使你没有灵魂。世界真的要命,而我假的要死。23 行未改动172.16.14.55https://www.luogu.com.cn/discuss/1334931查分约束最大跑最短路,最小跑最长路# ⚡主页就是我的云空间!⚡快读快写```long long read(){351 行未改动全部展开1234567891011121314151623 行未改动404142434445464748351 行未改动全部展开```树状数组倍增```寂寞城市又再探戈 || 天地浩然之间 生命本该风雅---明明这个世界如此美好,可是这个世界上只有我一个人。我相信你的笑容,纵使你没有灵魂。世界真的要命,而我假的要死。23 行未改动172.16.14.55https://www.luogu.com.cn/discuss/1334931https://unigravityqwq.github.io/# ⚡主页就是我的云空间!⚡快读快写```long long read(){351 行未改动全部展开