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_1 : str ) -> List [ int ] :
      var_2 , var_3 = 0 , 1
      for var_4 in var_1 :
          var_5 = var_0 [ ord ( var_4 ) - ord ( 'a' ) ]
          if var_2 + var_5 <= 100 :
              var_2 += var_5
          else :
              var_3 += 1
              var_2 = var_5
      return [ var_3 , var_2 ]
  