commit d7f87117f9c26991f2b2b8e1ed5b9b0b4c786279 parent 27a64f668eb6f3fbb8ee80a6ebefa6b539fefbe8 Author: Andrew Laack <andrew@laack.co> Date: Tue, 20 Oct 2026 20:30:11 -0500 Fix syntax issue Diffstat:
| A | comp/maximimze-the-score/ex2.in | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
| M | comp/maximimze-the-score/main.cpp | | | 1 | + |
2 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/comp/maximimze-the-score/ex2.in b/comp/maximimze-the-score/ex2.in @@ -0,0 +1,41 @@ +20 +1 +1 1 +2 +1 2 1 2 +2 +1 2 2 1 +3 +1 1 2 3 3 2 +3 +1 2 3 3 2 1 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +4 +1 2 3 4 1 2 3 4 +26 +1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 +26 +1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 +26 +1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 diff --git a/comp/maximimze-the-score/main.cpp b/comp/maximimze-the-score/main.cpp @@ -17,6 +17,7 @@ std::string vecToString(std::vector<int>& nums) { int solve(std::vector<int>& nums, std::unordered_map<std::string, int>& memo) { + std::string nm = vecToString(nums); if(memo.find(nm) != memo.end()) { return memo[nm]; }