摘要:
板子 #include<bits/stdc++.h> using namespace std; const int N=20; int read(){ int x;scanf("%d",&x);return x; } int w[N][N]; int f[1<<N][N];//第一维用二进制,若该位 阅读全文
摘要:
虽然我现在还不怎么理解 但是 这个和这个 都相当于是斜率优化的 板子 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+10,M=1e9; const ll INF=1e18; int 阅读全文
摘要:
P3387 缩点 #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int read(){ int x;scanf("%d",&x);return x; } struct{ int y[2],nxt[2],x; }e[N 阅读全文