One day,Alex is boring so he plays with dices,he has n dices and each of them has k faces numbered from 1 to k, You can rotate/flip any dice, Now he wants to know how many ways he can set the top faces such that the summation of all top faces equals S?
3 1 6 3 2 9 8 500 6 1000
Case 1: 1 Case 2: 7 Case 3: 57286574
无
Alex@NBUT