comefrom: <doocs>2270.Number of Ways to Split Array_1.py
code: def waysToSplitArray( nums: List[int]) -> int:
      s = sum(nums)
      ans = t = 0
      for v in nums[:-1]:
          t += v
          if t >= s - t:
              ans += 1
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 = sum ( var_0 )
      var_7 = var_5 = 0
      for var_9 in var_0 [ : - 1 ] :
          var_5 += var_9
          if var_5 >= var_4 - var_5 :
              var_7 += 1
      return var_7
  