摘要:
"题目连接" 题意: 在n m的方格中填入数字使得每行每列的的乘积都等于k值,k等于1或者 ,问有多少种方案 1 using namespace std; typedef long long ll; const ll mod = 1e9+7; int gcd(int a,int b) {return 阅读全文
摘要:
"题目链接" 题意:在n m的矩阵中选择变换或者不变换一个数变成p,使得最大子矩阵和最小 1 using namespace std; const int inf = 2e9+1e8; const int N = 160; int a[N][N]; int L[N],R[N],U[N],D[N],d 阅读全文
摘要:
给一个有向无环图求顺序 include using namespace std; define pb push_back const int N = 1010; typedef vector vi; vectorg[N]; vi ans; int in[N]; int topo(int n) { f 阅读全文