2021年4月29日星期四

Unable to understand the Choice of Area DP

Consider a game, in which you have two types of powers, A and B and there are 3 types of Areas X, Y and Z. Every second you have to switch between these areas, each area has specific properties by which your power A and power B increase or decrease. We need to keep choosing areas in such a way that our survival time is maximized. Survival time ends when any of the powers, A or B reaches less than 0. Examples:

Initial value of Power A = 20          Initial value of Power B = 8    Area X (3, 2) : If you step into Area X,                   A increases by 3,                   B increases by 2    Area Y (-5, -10) : If you step into Area Y,                      A decreases by 5,                      B decreases by 10    Area Z (-20, 5) : If you step into Area Z,                     A decreases by 20,                     B increases by 5    It is possible to choose any area in our first step.  We can survive at max 5 unit of time by following   these choice of areas :  X -> Z -> X -> Y -> X  
https://stackoverflow.com/questions/67327680/unable-to-understand-the-choice-of-area-dp April 30, 2021 at 11:05AM

没有评论:

发表评论