title: Pair With Given Product Set 1 Find If Any Pair Exists 1
signature: func pairWithGivenProductSet1FindIfAnyPairExists1(arr []int, n int, x int) bool {
source_py: def pair_with_given_product_set_1_find_if_any_pair_exists_1(arr, n, x):
      if (n < 2):
          return False
      s = set()
      for i in range(0, n):
          if (arr[i] == 0):
              if (x == 0):
                  return True
              else:
                  continue
          if ((x % arr[i]) == 0):
              if ((x // arr[i]) in s):
                  return True
              s.add(arr[i])
      return False
source_cpp: bool pair_with_given_product_set_1_find_if_any_pair_exists_1(vector<int> arr, int n, int x) {
    if ( n < 2 ) return false;
    unordered_set < int > s;
    for ( int i = 0;
    i < n;
    i ++ ) {
      if ( arr [ i ] == 0 ) {
        if ( x == 0 ) return true;
        else continue;
      }
      if ( x % arr [ i ] == 0 ) {
        if ( s . find ( x / arr [ i ] ) != s . end ( ) ) return true;
        s . insert ( arr [ i ] );
      }
    }
    return false;
  }