摘要:
#include<bits/stdc++.h> using namespace std; const int N =100010,Inf=0x7fffff; int root; int idx,a[N],cnt=0; struct node{ int s[2],p,v; int size; void 阅读全文
该文被密码保护。 阅读全文
摘要:
#include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N = 100010; struct Node { int s[2], p, v; int size,flag; void 阅读全文
摘要:
#include<iostream> using namespace std; int main(){ } kugxjsxgajk v 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 200000,Inf=0x7fffff; struct edge{ int u,v,w; edge(int a,int b,int c){ u=a,v=b,w=c; } }; vec 阅读全文
摘要:
#include <iostream> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; str 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 10000; struct edge{ int from,to,v; edge(int a,int b,int c){ from=a;to=b;v=c; } }; vector<ed 阅读全文
摘要:
OIER 公司是一家大型专业化软件公司,有着数以万计的员工。 作为一名出纳员,我的任务之一便是统计每位员工的工资。 这本来是一份不错的工作,但是令人郁闷的是,我们的老板反复无常,经常调整员工的工资。 如果他心情好,就可能把每位员工的工资加上一个相同的量。 反之,如果心情不好,就可能把他们的工资扣除一 阅读全文
摘要:
给定一个长度为 nn 的整数序列,初始时序列为 {1,2,…,n−1,n}{1,2,…,n−1,n}。 序列中的位置从左到右依次标号为 1∼n1∼n。 我们用 [l,r][l,r] 来表示从位置 ll 到位置 rr 之间(包括两端点)的所有数字构成的子序列。 现在要对该序列进行 mm 次操作,每次操 阅读全文
摘要:
#include<iostream> #include<algorithm> #include<cstring> typedef unsigned long long ull; using namespace std; const int N = 1000002; long fac[]={1,1,2 阅读全文