Problem 4russians
User TomThuy123
Submission Time 2026-03-08 11:46:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

4russians.cpp:51:55: error: stray ‘\342’ in program
51 | I see one bug immediately: your memo table uses -1 as “unvisited”, but some valid DP states can actually be -1, so those states get treated inconsistently. There is also one return-path issue that makes the base states not get stored.
| ^
4russians.cpp:51:56: error: stray ‘\200’ in program
51 | I see one bug immediately: your memo table uses -1 as “unvisited”, but some valid DP states can actually be -1, so those states get treated inconsistently. There is also one return-path issue that makes the base states not get stored.
| ^
4russians.cpp:51:57: error: stray ‘\234’ in program
51 | I see one bug immediately: your memo table uses -1 as “unvisited”, but some valid DP states can actually be -1, so those states get treated inconsistently. There is also one return-path issue that mak