摘要:
include include include using namespace std; const int N=100010; int n, a[N]; int len, b[N]; //记录上升子序列 int main(){ scanf("%d", &n); for(int i=0; i<n; 阅读全文
摘要:
include include include using namespace std; const int N=1010; int n, m; char a[N], b[N]; int f[N][N]; int main(){ cin>>n>>m>>a+1>>b+1; for(int i=1; i 阅读全文
摘要:
求凹函数的极小值 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 阅读全文
摘要:
// 结构体版 include include include using namespace std; define N 100005 define LL long long define lc u<<1 define rc u<<1|1 LL w[N]; struct Tree{ //线段树 L 阅读全文