comefrom: <doocs>1534.Count Good Triplets_1.py
code: def countGoodTriplets( arr: List[int], a: int, b: int, c: int) -> int:
      n = len(arr)
      ans = 0
      for i in range(n):
          for j in range(i + 1, n):
              for k in range(j + 1, n):
                  if (
                      abs(arr[i] - arr[j]) <= a
                      and abs(arr[j] - arr[k]) <= b
                      and abs(arr[i] - arr[k]) <= c
                  ):
                      ans += 1
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_3 : int , var_4 : int , var_5 : int ) -> int :
      var_7 = len ( var_0 )
      var_9 = 0
      for var_11 in range ( var_7 ) :
          for var_13 in range ( var_11 + 1 , var_7 ) :
              for var_14 in range ( var_13 + 1 , var_7 ) :
                  if ( abs ( var_0 [ var_11 ] - var_0 [ var_13 ] ) <= var_3 and abs ( var_0 [ var_13 ] - var_0 [ var_14 ] ) <= var_4 and abs ( var_0 [ var_11 ] - var_0 [ var_14 ] ) <= var_5 ) :
                      var_9 += 1
      return var_9
  