Full threadkraemate·protip: Use Generating functions. Piece of cake if you use them for this problem.View on HN