随笔分类 -  最近公共祖先(LCA)

摘要:1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cstdlib> 5 #include<cmath> 6 #include<algorithm> 7 using namespace std; 8 #defi 阅读全文
posted @ 2019-07-22 22:54 KGW_源 阅读(210) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 #define maxn 1000010 8 #define IL inline 9 IL void read(int &x) 10 { 11 x=0;int f=1;char ch=getchar(); 12 ... 阅读全文
posted @ 2019-03-13 15:49 KGW_源 阅读(207) 评论(0) 推荐(0)

- Hide code