comefrom: <doocs>1691.Maximum Height by Stacking Cuboids_1.py
code: def maxHeight( cuboids: List[List[int]]) -> int:
      for c in cuboids:
          c.sort()
      cuboids.sort()
      n = len(cuboids)
      dp = [0] * n
      for i in range(n):
          for j in range(i):
              if cuboids[j][1] <= cuboids[i][1] and cuboids[j][2] <= cuboids[i][2]:
                  dp[i] = max(dp[i], dp[j])
          dp[i] += cuboids[i][2]
      return max(dp)
masked: def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
      for var_3 in var_0 :
          var_3.sort ( )
      var_0.sort ( )
      var_6 = len ( var_0 )
      var_8 = [ 0 ] * var_6
      for var_10 in range ( var_6 ) :
          for var_11 in range ( var_10 ) :
              if var_0 [ var_11 ] [ 1 ] <= var_0 [ var_10 ] [ 1 ] and var_0 [ var_11 ] [ 2 ] <= var_0 [ var_10 ] [ 2 ] :
                  var_8 [ var_10 ] = max ( var_8 [ var_10 ] , var_8 [ var_11 ] )
          var_8 [ var_10 ] += var_0 [ var_10 ] [ 2 ]
      return max ( var_8 )
  