摘要:
求凹函数的极小值 int tri_search(int l,int r){ // 求凹函数的极小值 int f1,f2; while(l < r) { int lp = l + (r - l) / 3; int rp = r - (r - l) / 3; f1 = check(lp),f2 = ch 阅读全文
摘要:
https://www.acwing.com/file_system/file/content/whole/index/content/5377641/ include <bits/stdc++.h> using namespace std; const int N = 500010; int n, 阅读全文
摘要:
include include using namespace std; const int N=50010,M=150010; int h[N],e[M],ne[M],w[M],idx; int dist[N],n,q[N]; bool st[N]; void add(int a,int b,in 阅读全文