comefrom: <doocs>1953.Maximum Number of Weeks for Which You Can Work_1.py
code: def numberOfWeeks( milestones: List[int]) -> int:
      mx, s = max(milestones), sum(milestones)
      rest = s - mx
      return rest * 2 + 1 if mx > rest + 1 else s
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 , var_6 = max ( var_0 ) , sum ( var_0 )
      var_7 = var_6 - var_4
      return var_7 * 2 + 1 if var_4 > var_7 + 1 else var_6
  