PHP Program to Paint N boxes using M colors such that K boxes have color different from color of box on its left
< ? php $ M = 1001 ; $ MOD = 998244353 ; $ dp = array_fill ( 0 , $ M , array_fill ( 0 , $ M , -1 ) ) ;