You are provided with a fixed number of red and blue blocks for the construction of a colorful monument. The construction must obey the following rules:
Let h be the maximum possible number of floors in the monument that can be built out of the provided number of red and blue blocks. Your task is to determine how many different colorful monuments having h floors can be built out of the available blocks.
Two colorful monuments are considered different if there exists atleast one level that consists of red blocks in one tower and blue in the other.
Since the answer may be too large, output the number of different possible monuments of height h modulo 10^9 + 7.
MyKaarma • Pending