comefrom: <doocs>0806.Number of Lines To Write String_1.py
code: def numberOfLines( widths: List[int], s: str) -> List[int]:
      last, row = 0, 1
      for c in s:
          w = widths[ord(c) - ord('a')]
          if last + w <= 100:
              last += w
          else:
              row += 1
              last = w
      return [row, last]
masked: def sample_funcname ( var_0 : List [ int ] , var_3 : str ) -> List [ int ] :
      var_6 , var_8 = 0 , 1
      for var_9 in var_3 :
          var_12 = var_0 [ ord ( var_9 ) - ord ( 'a' ) ]
          if var_6 + var_12 <= 100 :
              var_6 += var_12
          else :
              var_8 += 1
              var_6 = var_12
      return [ var_8 , var_6 ]
  