Starting from one wire of capacity N, each year every wire splits into two wires transformed by two quadratic polynomials, and after M years we need the sum of 112345 raised to each wire's capacity, mod 1e9+9.
Hard8MathDivide and conquerCombinatoricsRecursionNo attempts yetTime limit2sMemory limit256 MB