For storing multiples .
List < int > [ ] mu = new List < int > [ MAX ] ; for ( int i = 0 ; i < MAX ; i ++ ) { for ( int j = 0 ; j < MAX ; j ++ ) { dp [ i , j ] = 0 ; } } for ( int i = 0 ; i < MAX ; i ++ ) { di [ i ] = new List < int > ( ) ; mu [ i ] = new List < int > ( ) ; }