摘要:
竟然还涨分了。。。rank500+还能涨我rating是有多低。。。 AB不写了 C:类似找规律,具体证明看edtorial #include<bits/stdc++.h> using namespace std; const int N = 200010; int m; struct data { 阅读全文
摘要:
树的直径 我先开始以为是个图,想想并不知道什么求图的直径的方法,结果是棵树 那么直觉告诉我们是在直径上面,实际上就是直径+min(i->u,i->v),扫一遍就行了 #include<bits/stdc++.h> using namespace std; const int N = 200010; 阅读全文