Today, Corin, Orianna's father builds a new ball for her.
That ball contains 5 levels attack mode named M1, M2, M3, M4 and M5. But there's a strange rule in using the mode - once she attack in one mode and the previous attack is in a lower mode, she can only use a lower mode than this time in the next attack. Other wise, when she attack in one mode and the previous one is in a higher mode, she can only use a higher mode than this time in the next attack.
For example, her previous attack is using M3 and her current mode is M4, then she can only use M1, M2, M3 in the next attack.
Since all kinds of reasons (physical condition, mentation, etc.), the damage of each attack in each mode of each time in one competition is different.
Give you the damage of each attack in each mode of each time in one competition, you should help Orianna to design an attack planning that makes the damage maximum.
5 3 2 1 4 1 2 3 3 1 2 4 1 2 3 1 2 4 2 1 3 2 1 2 3 4
17
无
XadillaX