3 极光掠夺天边

尚未进行身份认证

侠影之谜

等级
TA的排名 6k+

HYSBZ 3673 可持久化并查集 by zky

#include<bits/stdc++.h>using namespace std;const int maxn=2e5+10;int ch[maxn][2],val[maxn];int tot,rootfa[maxn],rootdep[maxn];void build(int &now,int l,int r){ now=++tot; if(l=...

2020-01-26 10:53:47

HYSBZ 3224 Tyvj 1728 普通平衡树(FHQ_Treap平衡树)

#include<bits/stdc++.h>using namespace std;#define ls(x) ch[x][0]#define rs(x) ch[x][1]const int maxn=1e5+10;int tot,root;int ch[maxn][2],val[maxn],dat[maxn],sz[maxn];void upd(int x){ ...

2020-01-21 17:18:31

HYSBZ 3224 Tyvj 1728 普通平衡树

#include<bits/stdc++.h>using namespace std;#define ls ch[x][0]#define rs ch[x][1]#define R register intconst int maxn=1e5+10,Inf=2e9+10;inline int input(){ R ret=0,fix=1; register...

2020-01-20 17:39:19

各种学习记录

如何安装python环境(pycharm)pycharm安装 MinGW最新版离线下载(不翻墙):相关博客资源 VS Coder如何解决includePath问题:解决方案

2019-12-30 10:11:53

1100 Mars Numbers (20 分)

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define mst(x,y) memset(x,y,sizeof(x))#define ll long longconst int maxn=1e4+10;#define pii pa...

2019-09-08 07:24:06

1108 Finding Average

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define mst(x,y) memset(x,y,sizeof(x))#define ll long longconst int maxn=1e4+10;#define pii pa...

2019-09-07 15:49:07

1112 Stucked Keyboard

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define mst(x,y) memset(x,y,sizeof(x))#define ll long longconst int maxn=1e4+10;#define pii pa...

2019-09-07 15:25:55

1111 Online Map

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define mst(x,y) memset(x,y,sizeof(x))#define ll long longconst int maxn=1e4+10;#define pii pa...

2019-09-07 14:14:27

1116 Come on! Let's C

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define ll long longconst int maxn=1e4+10;int n,x;map<int,int> mp;int vis[maxn];int ju...

2019-09-07 11:44:41

1115 Counting Nodes in a BST二叉排序树

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define ll long longconst int maxn=1e4+10;int n,tot=0,x,dat[maxn],L[maxn],R[maxn];void Insert(...

2019-09-07 11:16:36

1117 Eddington Number

#include<bits/stdc++.h>using namespace std;#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)#define ll long longconst int maxn=1e5+10;int n,a[maxn],cnt=0;int main(){ cin>>n; ...

2019-09-07 10:59:54

1114 Family Property

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)#define fi first#define se second#define mk(x,y) make_pair...

2019-09-06 21:21:04

1113 Integer Set Partition

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)#define fi first#define se second#define mk(x,y) make_pair...

2019-09-06 20:11:43

1110 Complete Binary Tree

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)#define fi first#define se second#define mk(x,y) make_pair...

2019-09-06 19:38:17

1109 Group Photo

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)#define fi first#define se second#define mk(x,y) make_pair...

2019-09-06 18:46:32

1107 Social Clusters

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)const int maxn=1e3+10;int n,k,x;int fa[maxn],cnt[maxn];ve...

2019-09-06 16:03:33

1106 Lowest Price in Supply Chain

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)const int maxn=1e5+10;int n,dep[maxn],ub=-1,h=maxn,cnt[maxn...

2019-09-06 15:25:05

1122 Hamiltonian Cycle

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)const int maxn=500;int n,m,x,y,k,tmp;int vis[maxn],rou[max...

2019-09-05 21:12:02

1121 Damn Single

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)const int maxn=1e5;int a[maxn];int n,x,y;vector<int&gt...

2019-09-05 20:53:03

1120 Friend Numbers

#include<bits/stdc++.h>using namespace std;#define mst(x,y) memset(x,y,sizeof(x))#define rep(x,y,z) for(int x=(y);(x)<(z);x++)const int maxn=10000+10;int n,x,a[maxn];set<int> st;...

2019-09-05 20:39:05

查看更多

勋章 我的勋章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv4
    勤写标兵Lv4
    授予每个自然周发布9篇以上(包括9篇)原创IT博文的用户。本勋章将于次周上午根据用户上周周三的博文发布情况由系统自动颁发。