摘要:
退役后随便选一个二分练练手感 这题就是二分模板题。。 二分答案切多大,代入检验即可 #include <bits/stdc++.h>//二分答案 using namespace std; int a[100000+5]; long long sum; int main(){ int n,k,l,r; 阅读全文
摘要:
最小生成树模板题 #include <bits/stdc++.h> using namespace std; struct node{ int u; int v; int w; }a[100005]; int fa[305],n,m,ans=0,tot=1; bool cmp(node x,node 阅读全文