title: Find Three Element From Different Three Arrays Such That That A B C K
signature: fun findThreeElementFromDifferentThreeArraysSuchThatThatABCK(a1: ArrayList<Int>, a2: ArrayList<Int>, a3: ArrayList<Int>, n1: Int, n2: Int, n3: Int, sum: Int): Boolean {
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;
  }
question_info.test_list: [{"idx": 0, "outputs": false, "inputs": {"a1": [4, 9, 10, 19, 24, 25, 26, 30, 36, 43, 44, 49, 52, 62, 66, 69, 72, 77, 80, 80, 82, 84, 90, 93, 94, 98], "a2": [4, 8, 17, 20, 22, 25, 27, 30, 31, 33, 35, 35, 38, 41, 49, 51, 60, 61, 66, 67, 69, 82, 84, 85, 86, 88], "a3": [12, 14, 17, 20, 22, 27, 29, 31, 32, 38, 41, 43, 56, 59, 59, 64, 66, 67, 68, 69, 71, 76, 83, 83, 85, 99], "n1": 25, "n2": 18, "n3": 16, "sum": 222}}, {"idx": 1, "outputs": false, "inputs": {"a1": [-24, -80, -72, 80, -96, -94, 64, 18, 12, 16, 74, 16, 54, 66, -96, -90, 54, 72, -32, -2, 90, -18, -98, 12, -42, -30, -82, -56, -86, 40], "a2": [30, -60, -24, 18, 40, 44, -40, 62, 66, -38, 50, -74, -42, -86, -82, -8, 50, -72, -2, -48, -38, -20, -8, 56, -32, 68, 94, 80, -48, 0], "a3": [-24, 80, 50, -56, -92, 20, 86, -42, -30, 96, 40, -32, -64, 54, -38, -72, -70, 54, -28, 98, 60, 98, -12, -30, -30, 68, -66, 68, -58, 52], "n1": 26, "n2": 22, "n3": 20, "sum": 21}}, {"idx": 2, "outputs": true, "inputs": {"a1": [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "a2": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], "a3": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1], "n1": 14, "n2": 14, "n3": 14, "sum": 2}}, {"idx": 3, "outputs": true, "inputs": {"a1": [28, 15, 21, 28, 85, 68, 24], "a2": [57, 46, 47, 49, 16, 81, 60], "a3": [76, 49, 6, 44, 71, 24, 57], "n1": 6, "n2": 5, "n3": 5, "sum": 73}}, {"idx": 4, "outputs": true, "inputs": {"a1": [-86, -82, -66, -44, -44, -38, -22, -6, -2, 14, 26, 40, 54, 58, 60, 66, 72, 80, 94, 96, 98], "a2": [-96, -86, -74, -56, -52, -42, -32, -22, -16, -10, -4, -4, 10, 42, 48, 52, 58, 62, 84, 90, 96], "a3": [-92, -92, -90, -82, -62, -44, -42, -40, -38, -36, -22, -20, -8, 12, 22, 26, 30, 44, 54, 64, 86], "n1": 13, "n2": 20, "n3": 17, "sum": 6}}, {"idx": 5, "outputs": true, "inputs": {"a1": [1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1], "a2": [0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1], "a3": [1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0], "n1": 25, "n2": 25, "n3": 23, "sum": 0}}, {"idx": 6, "outputs": false, "inputs": {"a1": [44, 53, 85, 85, 86, 88, 93], "a2": [4, 5, 8, 15, 29, 40, 91], "a3": [30, 53, 71, 75, 76, 82, 84], "n1": 5, "n2": 3, "n3": 4, "sum": 3}}, {"idx": 7, "outputs": false, "inputs": {"a1": [70, -38, 62, -34, 74, -32, -58, -34, -54], "a2": [48, -86, -18, 14, 88, 92, -56, -8, -74], "a3": [8, 8, 32, 76, 76, 94, 22, -60, -42], "n1": 6, "n2": 6, "n3": 6, "sum": 7}}, {"idx": 8, "outputs": false, "inputs": {"a1": [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "a2": [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1], "a3": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], "n1": 15, "n2": 14, "n3": 10, "sum": 13}}, {"idx": 9, "outputs": false, "inputs": {"a1": [41, 64, 39, 96, 54, 54, 57, 4, 82, 43, 44, 56, 1], "a2": [44, 58, 40, 87, 22, 82, 8, 81, 88, 42, 15, 14, 81], "a3": [64, 20, 24, 42, 37, 46, 6, 47, 12, 93, 8, 5, 11], "n1": 7, "n2": 8, "n3": 6, "sum": 10}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Boolean, expected:Boolean):Boolean{
    return actual.equals(expected)
  }
  fun driver(a1: ArrayList<Int>, a2: ArrayList<Int>, a3: ArrayList<Int>, n1: Int, n2: Int, n3: Int, sum: Int, expected:Boolean):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(a1, a2, a3, n1, n2, n3, sum), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(arrayListOf(4, 9, 10, 19, 24, 25, 26, 30, 36, 43, 44, 49, 52, 62, 66, 69, 72, 77, 80, 80, 82, 84, 90, 93, 94, 98), arrayListOf(4, 8, 17, 20, 22, 25, 27, 30, 31, 33, 35, 35, 38, 41, 49, 51, 60, 61, 66, 67, 69, 82, 84, 85, 86, 88), arrayListOf(12, 14, 17, 20, 22, 27, 29, 31, 32, 38, 41, 43, 56, 59, 59, 64, 66, 67, 68, 69, 71, 76, 83, 83, 85, 99), 25, 18, 16, 222, false)
      println("TEST-0...${result}")
      
      result = driver(arrayListOf(-24, -80, -72, 80, -96, -94, 64, 18, 12, 16, 74, 16, 54, 66, -96, -90, 54, 72, -32, -2, 90, -18, -98, 12, -42, -30, -82, -56, -86, 40), arrayListOf(30, -60, -24, 18, 40, 44, -40, 62, 66, -38, 50, -74, -42, -86, -82, -8, 50, -72, -2, -48, -38, -20, -8, 56, -32, 68, 94, 80, -48, 0), arrayListOf(-24, 80, 50, -56, -92, 20, 86, -42, -30, 96, 40, -32, -64, 54, -38, -72, -70, 54, -28, 98, 60, 98, -12, -30, -30, 68, -66, 68, -58, 52), 26, 22, 20, 21, false)
      println("TEST-1...${result}")
      
      result = driver(arrayListOf(0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), arrayListOf(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1), arrayListOf(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1), 14, 14, 14, 2, true)
      println("TEST-2...${result}")
      
      result = driver(arrayListOf(28, 15, 21, 28, 85, 68, 24), arrayListOf(57, 46, 47, 49, 16, 81, 60), arrayListOf(76, 49, 6, 44, 71, 24, 57), 6, 5, 5, 73, true)
      println("TEST-3...${result}")
      
      result = driver(arrayListOf(-86, -82, -66, -44, -44, -38, -22, -6, -2, 14, 26, 40, 54, 58, 60, 66, 72, 80, 94, 96, 98), arrayListOf(-96, -86, -74, -56, -52, -42, -32, -22, -16, -10, -4, -4, 10, 42, 48, 52, 58, 62, 84, 90, 96), arrayListOf(-92, -92, -90, -82, -62, -44, -42, -40, -38, -36, -22, -20, -8, 12, 22, 26, 30, 44, 54, 64, 86), 13, 20, 17, 6, true)
      println("TEST-4...${result}")
      
      result = driver(arrayListOf(1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1), arrayListOf(0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1), arrayListOf(1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0), 25, 25, 23, 0, true)
      println("TEST-5...${result}")
      
      result = driver(arrayListOf(44, 53, 85, 85, 86, 88, 93), arrayListOf(4, 5, 8, 15, 29, 40, 91), arrayListOf(30, 53, 71, 75, 76, 82, 84), 5, 3, 4, 3, false)
      println("TEST-6...${result}")
      
      result = driver(arrayListOf(70, -38, 62, -34, 74, -32, -58, -34, -54), arrayListOf(48, -86, -18, 14, 88, 92, -56, -8, -74), arrayListOf(8, 8, 32, 76, 76, 94, 22, -60, -42), 6, 6, 6, 7, false)
      println("TEST-7...${result}")
      
      result = driver(arrayListOf(0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), arrayListOf(0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1), arrayListOf(0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1), 15, 14, 10, 13, false)
      println("TEST-8...${result}")
      
      result = driver(arrayListOf(41, 64, 39, 96, 54, 54, 57, 4, 82, 43, 44, 56, 1), arrayListOf(44, 58, 40, 87, 22, 82, 8, 81, 88, 42, 15, 14, 81), arrayListOf(64, 20, 24, 42, 37, 46, 6, 47, 12, 93, 8, 5, 11), 7, 8, 6, 10, false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: findThreeElementFromDifferentThreeArraysSuchThatThatABCK
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn