title: Find Three Element From Different Three Arrays Such That That A B C K
signature: findThreeElementFromDifferentThreeArraysSuchThatThatABCK(a1, a2, a3, n1, n2, n3, sum) {
source_py: def find_three_element_from_different_three_arrays_such_that_that_a_b_c_k(a1, a2, a3, n1, n2, n3, sum):
      for i in range(0, n1):
          for j in range(0, n2):
              for k in range(0, n3):
                  if (((a1[i] + a2[j]) + a3[k]) == sum):
                      return True
      return False
source_cpp: bool find_three_element_from_different_three_arrays_such_that_that_a_b_c_k(vector<int> a1, vector<int> a2, vector<int> a3, int n1, int n2, int n3, int sum) {
    for ( int i = 0;
    i < n1;
    i ++ ) for ( int j = 0;
    j < n2;
    j ++ ) for ( int k = 0;
    k < n3;
    k ++ ) if ( a1 [ i ] + a2 [ j ] + a3 [ k ] == sum ) return true;
    return false;
  }