Problem twomeals
User ethanlinHoucheng
Submission Time 2024-11-14 15:27:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

twomeals.cpp:2:7: error: invalid preprocessing directive #Step
2 | # Step 1: Compute max_left array (maximum subarray sum ending at each index)
| ^~~~
twomeals.cpp:10:7: error: invalid preprocessing directive #Step
10 | # Step 2: Compute max_right array (maximum subarray sum starting at each index)
| ^~~~
twomeals.cpp:18:7: error: invalid preprocessing directive #Step
18 | # Step 3: Find the maximum satisfaction by considering all split points
| ^~~~
twomeals.cpp:21:7: error: invalid preprocessing directive #We
21 | # We need to check that we allow the possibility of one of the segments being 0
| ^~
twomeals.cpp:1:1: error: ‘def’ does not name a type
1 | def max_satisfaction(N, T):
| ^~~