摘要:
#include <iostream>#include <algorithm>using namespace std;const int N=10010;typedef long long LL;int a[N];int n;int main(){ cin>>n; LL res=0; for(int 阅读全文
posted @ 2022-03-17 23:11
小白QIU
阅读(25)
评论(1)
推荐(0)
摘要:
#include <iostream>#include <algorithm>using namespace std;const int N=10010;int t[N];int n;int main(){ cin>>n; for(int i=0;i<n;i++) cin>>t[i]; sort(t 阅读全文
posted @ 2022-03-17 22:24
小白QIU
阅读(10)
评论(1)
推荐(0)
摘要:
#include <iostream>#include <algorithm>#include <queue>using namespace std;int main(){ int n; cin>>n; priority_queue<int,vector<int>,greater<int> > he 阅读全文
posted @ 2022-03-17 18:27
小白QIU
阅读(40)
评论(1)
推荐(0)
摘要:
#include <iostream>#include <algorithm>using namespace std;const int N=10010;int n;struct Range{ int l,r; bool operator<(const Range&W) const { return 阅读全文
posted @ 2022-03-17 14:19
小白QIU
阅读(29)
评论(1)
推荐(0)