comefrom: <qiyuangong>276_Paint_Fence_1.py
code: def numWays( n, k):
      w = [0, k, k*k]
      while len(w) <= n:
          w += sum(w[-2:]) * (k-1),
      return w[n]
masked: def sample_funcname ( var_0 , var_1 ) :
      var_3 = [ 0 , var_1 , var_1 * var_1 ]
      while len ( var_3 ) <= var_0 :
          var_3 += sum ( var_3 [ - 2 : ] ) * ( var_1 - 1 ) ,
      return var_3 [ var_0 ]
  