Package not available for desirable amount of sweets
for ( let k = 1 ; k <= n ; ++ k ) dp [ i ] [ k ] [ 0 ] = - 1 ; } for ( let i = 0 ; i <= m ; ++ i ) { for ( let j = 1 ; j <= n ; ++ j ) { for ( let k = 1 ; k <= n ; ++ k ) { dp [ i ] [ j ] [ k ] = - 1 ;