摘要:
#include <iostream> using namespace std; const int N = 1010; int n, m; char a[N], b[N]; int f[N][N]; int main() { cin >> n >> m; cin >> a + 1 >> b + 1 阅读全文
摘要:
#include <iostream> using namespace std; const int N = 1010; int n; int a[N], f[N]; int main() { cin >> n; for (int i = 1; i <= n; ++ i) cin >> a[i]; 阅读全文
摘要:
#include <iostream> using namespace std; const int N = 550, INF = 1e9; int n; int a[N][N], f[N][N]; int main() { cin >> n; for (int i = 1; i <= n; ++ 阅读全文
摘要:
#include <iostream> using namespace std; const int N = 110; int v[N][N], w[N][N]; int s[N], f[N]; int n, m; int main() { cin >> n >> m; for (int i = 1 阅读全文
摘要:
// 朴素解法 #include <iostream> using namespace std; const int N = 110; int n, m; int s[N], v[N], w[N]; int f[N][N]; int main() { cin >> n >> m; for (int 阅读全文
摘要:
#include <iostream> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; int main() { cin >> n >> m; for (int i = 1; i <= n; + 阅读全文
摘要:
#include <iostream> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; int main() { cin >> n >> m; for (int i = 1; i <= n; + 阅读全文