正文
增加 2 行删除 2 行
15 行未改动16171819202122232413 行未改动38394041424315 行未改动#include <bits/stdc++.h>#define ll long longusing namespace std;const int maxn = 1e3 + 10;const ll mn = -1e18;int n,m;int a[maxn][maxn];ll dp[maxn][maxn][2];ll solve(int i,int j,int k)13 行未改动}dp[1][1][0] = dp[1][1][1] = a[1][1];printf("%lld",solve(n,m,1));return 0;}```15 行未改动16171819202122232413 行未改动38394041424315 行未改动#include <bits/stdc++.h>#define ll long longusing namespace std;const int maxn = 1e3 + 10;const ll mn = -1e18;int n,m;int a[maxn][maxn];ll dp[maxn][maxn][2];ll solve(int i,int j,int k)13 行未改动}dp[1][1][0] = dp[1][1][1] = a[1][1];printf("%lld",solve(n,m,1));return 0;}```