版本比较
freezing_lemon
个人介绍
增加 6 行删除 29 行
1234567891011121314151617181920212223242526272345632783491011121314151623 行未改动40414243674445464748351 行未改动全部展开```#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.png---
https://cdn.luogu.com.cn/upload/image_hosting/rel0rorx.webp
明明这个世界如此美好,可是这个世界上只有我一个人。
我相信你的笑容,纵使你没有灵魂。
世界真的要命,而我假的要死。
23 行未改动172.16.14.55
https://www.luogu.com.cn/discuss/1334931
查分约束最大跑最短路,最小跑最长路https://unigravityqwq.github.io/# ⚡主页就是我的云空间!⚡快读快写```long long read(){351 行未改动全部展开