comefrom: <doocs>0523.Continuous Subarray Sum_1.py
code: def checkSubarraySum( nums: List[int], k: int) -> bool:
      s = 0
      mp = {0: -1}
      for i, v in enumerate(nums):
          s += v
          r = s % k
          if r in mp and i - mp[r] >= 2:
              return True
          if r not in mp:
              mp[r] = i
      return False
masked: def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> bool :
      var_6 = 0
      var_8 = { 0 : - 1 }
      for var_10 , var_11 in enumerate ( var_0 ) :
          var_6 += var_11
          var_12 = var_6 % var_3
          if var_12 in var_8 and var_10 - var_8 [ var_12 ] >= 2 :
              return True
          if var_12 not in var_8 :
              var_8 [ var_12 ] = var_10
      return False
  