摘要:
这道直接遍历一遍求出每个点的子节点数目就行了= =CODE:#include#include#include#includeusing namespace std;#define maxn 50010int b[maxn],q[maxn],id[maxn],ans[maxn];bool cmp(i... 阅读全文
摘要:
这道题貌似怎么写都可以吧= =,我先读入询问然后从小到大处理就行了= =PS:水水题真的好!无!聊!但是好!欢!乐!CODE:#include#include#include#includeusing namespace std;#define maxn 50010int b[maxn],q[ma... 阅读全文
摘要:
这= =,就是线段覆盖对了= =直接贪心就行了= =CODE:#include#include#include#includeusing namespace std;struct node{int l,r;}a[50010];int r,ans,n;bool cmp(node x,node y){... 阅读全文
摘要:
直接双端队列模拟,完了= =CODE:#include#include#include#include#includeusing namespace std;int n,sum;char s[2],st[2];deque d;int main(){scanf("%d",&n);for (int i... 阅读全文
摘要:
这个= =一看就是最短路了= =PS:最近有点懒 = = 刚才看到一道平衡树的裸题还嫌懒不去写= =算了等刷完这堆水题再去理= =CODE:#include#include#include#include#includeusing namespace std;#define maxm 100010... 阅读全文