diff --git a/codeforces/938/g.cc b/codeforces/938/g.cc index dca718c..9d168ca 100644 --- a/codeforces/938/g.cc +++ b/codeforces/938/g.cc @@ -193,6 +193,7 @@ void solve() { auto DP = [&](int factor) -> bool { for (int i = 0; i < sz(dp); ++i) dp[i].assign(m, false); + dp[0][0] = grid[0][0] % factor == 0; for (int i = 0; i < n; ++i) { diff --git a/codeforces/938/g.out b/codeforces/938/g.out index a1c2e1b..9477f68 100644 --- a/codeforces/938/g.out +++ b/codeforces/938/g.out @@ -3,4 +3,4 @@ 1 [code]: 0 -[time]: 11.7426 ms \ No newline at end of file +[time]: 11.7965 ms \ No newline at end of file