#include <cstring> #include <iostream> using namespace std; int main() { int n, m; cin >> n >> m; int dp[n + 1][m + 1]; memset(dp, 0, sizeof(dp)); //初始化动态规划 for (int i = 0;i <= n;i++) { for (int j = 0;j <= m;j++) { i...