Math, ad hoc
Math, ad hoc
Math, ad hoc
Simulation, similar to UVa 11150
Java BigDecimal
Math, number of combinations with repetition, Java BigInteger
Ad hoc