Problem Description Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The first two strings can be mixed arbitrarily, but each must stay in its original order. For e…
/*记忆化dfs+dp dp[i][j]代表达到这个点的所有路的条数,那么所有到达终点的路的总数就是这dp[1][1]加上所有他所能到达的点的 所有路的总数 */ #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; ; int map[maxn][maxn],vis[maxn][maxn]; int dp[maxn][maxn]; int n,m; int ok(in…