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_1 : int ) -> bool :
      var_2 = 0
      var_3 = { 0 : - 1 }
      for var_4 , var_5 in enumerate ( var_0 ) :
          var_2 += var_5
          var_6 = var_2 % var_1
          if var_6 in var_3 and var_4 - var_3 [ var_6 ] >= 2 :
              return True
          if var_6 not in var_3 :
              var_3 [ var_6 ] = var_4
      return False
  