title: Check Given Circle Lies Completely Inside Ring Formed Two Concentric Circles
signature: fun checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles(r0: Int, r10: Int, r11: Int, x1: Int, y1: Int): Boolean {
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(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)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver(8, 4, 2, 6, 0, true)
      println("TEST-0...${result}")
      
      result = driver(400, 1, 10, 74, 38, true)
      println("TEST-1...${result}")
      
      result = driver(1, 400, 10, 74, 38, false)
      println("TEST-2...${result}")
      
      result = driver(61, 40, 2, 50, 0, true)
      println("TEST-3...${result}")
      
      result = driver(60, 49, 68, 77, 71, false)
      println("TEST-4...${result}")
      
      result = driver(88, 10, 69, 71, 26, false)
      println("TEST-5...${result}")
      
      result = driver(60, 79, 92, 29, 38, false)
      println("TEST-6...${result}")
      
      result = driver(26, 88, 75, 84, 10, false)
      println("TEST-7...${result}")
      
      result = driver(33, 65, 57, 21, 61, false)
      println("TEST-8...${result}")
      
      result = driver(70, 57, 77, 52, 87, false)
      println("TEST-9...${result}")
      
          
  }
  
  main()
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 );
  }