title: Check Given Circle Lies Completely Inside Ring Formed Two Concentric Circles
signature: def checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles(r0: Int, r10: Int, r11: Int, x1: Int, y1: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Boolean , expected: Boolean): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(r0: Int, r10: Int, r11: Int, x1: Int, y1: Int, expected: Boolean): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(r0, r10, r11, x1, y1),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        8, 4, 2, 6, 0, 
        true    
      )}")   
  
  
      println(s"TEST-1...${driver(
        400, 1, 10, 74, 38, 
        true    
      )}")   
  
  
      println(s"TEST-2...${driver(
        1, 400, 10, 74, 38, 
        false    
      )}")   
  
  
      println(s"TEST-3...${driver(
        61, 40, 2, 50, 0, 
        true    
      )}")   
  
  
      println(s"TEST-4...${driver(
        60, 49, 68, 77, 71, 
        false    
      )}")   
  
  
      println(s"TEST-5...${driver(
        88, 10, 69, 71, 26, 
        false    
      )}")   
  
  
      println(s"TEST-6...${driver(
        60, 79, 92, 29, 38, 
        false    
      )}")   
  
  
      println(s"TEST-7...${driver(
        26, 88, 75, 84, 10, 
        false    
      )}")   
  
  
      println(s"TEST-8...${driver(
        33, 65, 57, 21, 61, 
        false    
      )}")   
  
  
      println(s"TEST-9...${driver(
        70, 57, 77, 52, 87, 
        false    
      )}")   
  
  }
  
source_py: def check_given_circle_lies_completely_inside_ring_formed_two_concentric_circles(r, R, r1, x1, y1):
      dis = int(math.sqrt(((x1 * x1) + (y1 * y1))))
      return (((dis - r1) >= R) and ((dis + r1) <= r))
source_cpp: bool check_given_circle_lies_completely_inside_ring_formed_two_concentric_circles(int r, int R, int r1, int x1, int y1) {
    int dis = sqrt ( x1 * x1 + y1 * y1 );
    return ( dis - r1 >= R && dis + r1 <= r );
  }