Turtles 利用LGV转换成求行列式值. #include<bits/stdc++.h> #define LL long long #define fi first #define se second #define mk make_pair #define PLL pair<LL, LL> #define PLI pair<LL, int> #define PII pair<int, int> #define SZ(x) ((int)x.size())…
题意及思路:https://www.cnblogs.com/chaoswr/p/9460378.html 代码: #include <bits/stdc++.h> #define LL long long using namespace std; const int maxn = 3010; const LL mod = 1000000007; LL dp[maxn][maxn]; char s[maxn][maxn]; int n, m; LL ans[4]; void solve(int…