Help needed for AtCoder Education DP Contest problem K: Stones

Revision en1, by deepansh09, 2023-08-31 15:56:45

Problem Link

Submission Link

What I am trying to do in my solution is keeping track of the winner [1 if the player whose turn is wins else 2 (opponent wins)]. I am not able to figure out when does this fails.

Tags atcoder, dp, atcoder educational dp, atcoder dp contest

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English deepansh09 2023-08-31 15:56:45 376 Initial revision (published)