comefrom: <doocs>0997.Find the Town Judge_1.py
code: def findJudge( n: int, trust: List[List[int]]) -> int:
      N = 1001
      c1, c2 = [0] * N, [0] * N
      for a, b in trust:
          c1[a] += 1
          c2[b] += 1
      for i in range(1, N):
          if c1[i] == 0 and c2[i] == n - 1:
              return i
      return -1
masked: def sample_funcname ( var_0 : int , var_1 : List [ List [ int ] ] ) -> int :
      var_2 = 1001
      var_3 , var_4 = [ 0 ] * var_2 , [ 0 ] * var_2
      for var_5 , var_6 in var_1 :
          var_3 [ var_5 ] += 1
          var_4 [ var_6 ] += 1
      for var_7 in range ( 1 , var_2 ) :
          if var_3 [ var_7 ] == 0 and var_4 [ var_7 ] == var_0 - 1 :
              return var_7
      return - 1
  