摘要: #include<bits/stdc++.h> using namespace std; int n,m; struct node { int id; int slove; int pen; bool operator<(const node &b)const { //如果解决的数量和罚时都一样,就 阅读全文
posted @ 2020-02-23 13:56 晴屿 阅读(126) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2020-02-23 13:11 晴屿 阅读(137) 评论(0) 推荐(0)
摘要: //预处理出以这个点为起点并跳出这个块的次数和位置 //更新一个点的弹力系数可以只更新这个点以及这个块内之前的点 #include<stdio.h> #include<algorithm> #include<string.h> #include<cmath> #include<iostream> u 阅读全文
posted @ 2020-02-23 11:52 晴屿 阅读(161) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2020-02-23 11:02 晴屿 阅读(141) 评论(0) 推荐(0)