摘要:
#include<bits/stdc++.h> using namespace std; int n,m; struct node { int id; int slove; int pen; bool operator<(const node &b)const { //如果解决的数量和罚时都一样,就 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll,ll>pll; const int maxn=5e5+10; int n,m; int block; int a[maxn],belo 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N=1<<20; struct node{ int l,r; int id; }q[N]; int pos[N]; long long ans[N]; //每个前缀值出现的次数 long l 阅读全文
摘要:
#include<iostream> #include<cmath> using namespace std; const int maxn=1e5+7; //表示当前数在哪一块里面 int belong[maxn]; //每块的大小 int block; //一共多少块 int num; //这个 阅读全文
摘要:
参考博客:https://www.cnblogs.com/ivanovcraft/p/9019090.html #include<iostream> #include<cstdio> #define int long long using namespace std; const int maxn= 阅读全文