https://www.acmicpc.net/problem/24392 코드#include using namespace std;#define MAX 1001#define MOD 1000000007#define FASTIO ios::sync_with_stdio(false);cin.tie(NULL);typedef long long ll;int arr[MAX][MAX], n, m, dp[MAX][MAX];ll ans;int main() { FASTIO; cin >> n >> m; for (int i = 0; i > arr[i][j]; if (i == 0) dp[i][j] = arr[i][j]; } } for (int i = 1; i 0 && arr[i - 1][j - 1] == 1) dp[i][j]..