From 3985e732d424cefa01e4d48301068e8b1f072ae7 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sun, 16 Feb 2025 19:45:57 -0500 Subject: [PATCH] fea(cf938): fix g tle --- codeforces/938/g.cc | 1 + codeforces/938/g.out | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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