摘要:
怎么写倍增啊。。。 A. 调度奶牛 反悔贪心。直接贴代码了。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e4+5; int n,sum; struct node{int g,d;}a 阅读全文
摘要:
又 AK 了。可惜不是第一 AK。 A. 访问小伙伴 最大生成树。 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+5; struct node{int u,v,w;}e[N]; i 阅读全文