Let hhh be the maximum possible number of levels of red-green tower, that can be built out of rrr red and ggg green blocks meeting the rules above.
令 hhh 表示用 rrr 个红积木和 ggg 个绿积木所能搭建的塔的最大层数。
要不然样例 222 就会看着很迷。