e wants, Bessie can drink water at most one time, which will instantly decrease her fullness by half (and will round down).<br />
<br />
Help Bessie determine the maximum fullness she can achieve!</p>
<p></p>
<p>奶牛Bessie潜入了农夫约翰的家，她发现这里有无穷无尽的柠檬派和橘子派。</p>
<p>Bessie的饱胀值一开始是0，且上限是T，每个柠檬派可以提供A点饱胀值，每个橘子派可以提供B点饱胀值。</p>
<p>Bessie可以不断地吃东西，如果她�