Dusa eats Yobis, but only Yobis of a certain size.
If Dusa encounters a Yobi that is smaller than itself, it eats the Yobi, and absorbs its size.
For example, if Dusa is of size 10 and it encounters a Yobi of size 6, Dusa eats the Yobi and
expands to size 10 + 6 = 16.
If Dusa encounters a Yobi that is the same size as itself or larger, Dusa runs away without
eating the Yobi.
Dusa is currently facing a line of Yobis and will encounter them in order. Dusa is guaranteed
to eventually encounter a Yobi that causes it to run away. Your job is to determine Dusa’s
size when this happens.
Dusa吃Yobis,但只吃特定大小的Yobis。
如果Dusa遇到比它小的Yobis,它就会吃掉Yobis,并吸收其大小。
例如,如果Dusa的大小为10,它遇到一个大小为6的Yobis,Dusa就会吃掉Yobis,扩大到大小10 + 6 = 16。
如果Dusa遇到一个与自己大小相同或更大的Yobis,Dusa就会逃跑,不会吃掉Yobis。
Dusa目前面对着一排Yobis,并将按顺序遇到它们。保证Dusa最终会遇到一个使它逃跑的Yobis。你的任务是确定这发生时Dusa的大小。
