title: Check Two Given Circles Touch Intersect
signature: fun checkTwoGivenCirclesTouchIntersect(x1: Int, y1: Int, x2: Int, y2: Int, r1: Int, r2: Int): Int {
source_py: def check_two_given_circles_touch_intersect(x1, y1, x2, y2, r1, r2):
      distSq = (((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)))
      radSumSq = ((r1 + r2) * (r1 + r2))
      if (distSq == radSumSq):
          return 1
      elif (distSq > radSumSq):
          return (- 1)
      else:
          return 0
source_cpp: int check_two_given_circles_touch_intersect(int x1, int y1, int x2, int y2, int r1, int r2) {
    int distSq = ( x1 - x2 ) * ( x1 - x2 ) + ( y1 - y2 ) * ( y1 - y2 );
    int radSumSq = ( r1 + r2 ) * ( r1 + r2 );
    if ( distSq == radSumSq ) return 1;
    else if ( distSq > radSumSq ) return - 1;
    else return 0;
  }
question_info.test_list: [{"idx": 0, "outputs": -1, "inputs": {"x1": 11, "y1": 36, "x2": 62, "y2": 64, "r1": 50, "r2": 4}}, {"idx": 1, "outputs": 0, "inputs": {"x1": 87, "y1": 1, "x2": 62, "y2": 64, "r1": 54, "r2": 41}}, {"idx": 2, "outputs": -1, "inputs": {"x1": 51, "y1": 1, "x2": 47, "y2": 90, "r1": 14, "r2": 71}}, {"idx": 3, "outputs": 0, "inputs": {"x1": 89, "y1": 67, "x2": 9, "y2": 52, "r1": 94, "r2": 21}}, {"idx": 4, "outputs": 0, "inputs": {"x1": 64, "y1": 10, "x2": 79, "y2": 45, "r1": 67, "r2": 78}}, {"idx": 5, "outputs": 0, "inputs": {"x1": 57, "y1": 86, "x2": 99, "y2": 43, "r1": 83, "r2": 63}}, {"idx": 6, "outputs": 0, "inputs": {"x1": 65, "y1": 90, "x2": 42, "y2": 82, "r1": 77, "r2": 32}}, {"idx": 7, "outputs": 0, "inputs": {"x1": 32, "y1": 23, "x2": 28, "y2": 26, "r1": 60, "r2": 45}}, {"idx": 8, "outputs": 0, "inputs": {"x1": 73, "y1": 61, "x2": 63, "y2": 77, "r1": 92, "r2": 76}}, {"idx": 9, "outputs": -1, "inputs": {"x1": 3, "y1": 99, "x2": 6, "y2": 19, "r1": 21, "r2": 28}}]
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:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(x1: Int, y1: Int, x2: Int, y2: Int, r1: Int, r2: Int, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(x1, y1, x2, y2, r1, r2), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(11, 36, 62, 64, 50, 4, -1)
      println("TEST-0...${result}")
      
      result = driver(87, 1, 62, 64, 54, 41, 0)
      println("TEST-1...${result}")
      
      result = driver(51, 1, 47, 90, 14, 71, -1)
      println("TEST-2...${result}")
      
      result = driver(89, 67, 9, 52, 94, 21, 0)
      println("TEST-3...${result}")
      
      result = driver(64, 10, 79, 45, 67, 78, 0)
      println("TEST-4...${result}")
      
      result = driver(57, 86, 99, 43, 83, 63, 0)
      println("TEST-5...${result}")
      
      result = driver(65, 90, 42, 82, 77, 32, 0)
      println("TEST-6...${result}")
      
      result = driver(32, 23, 28, 26, 60, 45, 0)
      println("TEST-7...${result}")
      
      result = driver(73, 61, 63, 77, 92, 76, 0)
      println("TEST-8...${result}")
      
      result = driver(3, 99, 6, 19, 21, 28, -1)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: checkTwoGivenCirclesTouchIntersect
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