title: Find Three Element From Different Three Arrays Such That That A B C K 1
signature: function find_three_element_from_different_three_arrays_such_that_that_a_b_c_k_1(a1, a2, a3, n1, n2, n3, sum)
source_py: def find_three_element_from_different_three_arrays_such_that_that_a_b_c_k_1(a1, a2, a3, n1, n2, n3, sum):
      s = set()
      for i in range(n1):
          s.add(a1[i])
      for i in range(n2):
          for j in range(n3):
              if (((sum - a2[i]) - a3[j]) in s):
                  return True
      return False
source_cpp: bool find_three_element_from_different_three_arrays_such_that_that_a_b_c_k_1(vector<int> a1, vector<int> a2, vector<int> a3, int n1, int n2, int n3, int sum) {
    unordered_set < int > s;
    for ( int i = 0;
    i < n1;
    i ++ ) s . insert ( a1 [ i ] );
    for ( int i = 0;
    i < n2;
    i ++ ) {
      for ( int j = 0;
      j < n3;
      j ++ ) {
        if ( s . find ( sum - a2 [ i ] - a3 [ j ] ) != s . end ( ) ) return true;
      }
    }
    return false;
  }