摘要:
题目 思路 开始码了遍暴力 #include<bits/stdc++.h> using namespace std; int a[200000+10]; int cnt1,cnt2; int main(){ int n;scanf("%d",&n); for(int i=1;i<=n;i++){ s 阅读全文
posted @ 2020-07-07 19:49
sodak
阅读(133)
评论(0)
推荐(0)
摘要:
题目 思路 这道题就是典型的lca板子(倍增) 但是~~~ 调了一下午,各种快读快输,结果,换了台机子,过了??!!难道我平时水的太多了,把机子水慢了??!! 虽然还是很慢 附上代码 #include<bits/stdc++.h> using namespace std; const int Siz 阅读全文
posted @ 2020-07-07 19:32
sodak
阅读(175)
评论(4)
推荐(0)
摘要:
题目 思路 这道题很明显是最短路,主要是建边有点困难,这里会用到分层图 #include<bits/stdc++.h> using namespace std; const int Size=2000000+100; int ver[Size],Next[Size],edge[Size],head[ 阅读全文
posted @ 2020-07-07 17:14
sodak
阅读(183)
评论(0)
推荐(1)

浙公网安备 33010602011771号