The WTA is a well-known optimization problem. Given a set of weapons of various types and a set of targets, we want to find the optimal assignment of the weapons to the targets in order to minimize ...
You have d dice, and each die has f faces numbered 1, 2, ..., f. Return the number of possible ways (out of fd total ways) modulo 10^9 + 7 to roll the dice so the sum ...