comefrom: <doocs>1974.Minimum Time to Type Word Using Special Typewriter_1.py
code: def minTimeToType( word: str) -> int:
      ans = prev = 0
      for c in word:
          curr = ord(c) - ord('a')
          t = abs(prev - curr)
          t = min(t, 26 - t)
          ans += t + 1
          prev = curr
      return ans
masked: def sample_funcname ( var_0 : str ) -> int :
      var_2 = var_1 = 0
      for var_3 in var_0 :
          var_4 = ord ( var_3 ) - ord ( 'a' )
          var_5 = abs ( var_1 - var_4 )
          var_5 = min ( var_5 , 26 - var_5 )
          var_2 += var_5 + 1
          var_1 = var_4
      return var_2
  