comefrom: <doocs>0757.Set Intersection Size At Least Two_1.py
code: def intersectionSizeTwo( intervals: List[List[int]]) -> int:
      intervals.sort(key=lambda x: (x[1], -x[0]))
      s = e = -1
      ans = 0
      for a, b in intervals:
          if a <= s:
              continue
          if a > e:
              ans += 2
              s, e = b - 1, b
          else:
              ans += 1
              s, e = e, b
      return ans
masked: def sample_funcname ( var_0 : List [ List [ int ] ] ) -> int :
      var_0.sort ( var_4 = lambda var_5 : ( var_5 [ 1 ] , - var_5 [ 0 ] ) )
      var_9 = var_8 = - 1
      var_10 = 0
      for var_11 , var_12 in var_0 :
          if var_11 <= var_9 :
              continue
          if var_11 > var_8 :
              var_10 += 2
              var_9 , var_8 = var_12 - 1 , var_12
          else :
              var_10 += 1
              var_9 , var_8 = var_8 , var_12
      return var_10
  