title: Check Given Circle Lies Completely Inside Ring Formed Two Concentric Circles
signature: check_given_circle_lies_completely_inside_ring_formed_two_concentric_circles <- function(r0, r10, r11, x1, y1) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(r0, r10, r11, x1, y1, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(r0, r10, r11, x1, y1), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          8L, 4L, 2L, 6L, 0L, 
          TRUE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          400L, 1L, 10L, 74L, 38L, 
          TRUE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          1L, 400L, 10L, 74L, 38L, 
          FALSE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          61L, 40L, 2L, 50L, 0L, 
          TRUE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          60L, 49L, 68L, 77L, 71L, 
          FALSE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          88L, 10L, 69L, 71L, 26L, 
          FALSE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          60L, 79L, 92L, 29L, 38L, 
          FALSE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          26L, 88L, 75L, 84L, 10L, 
          FALSE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          33L, 65L, 57L, 21L, 61L, 
          FALSE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          70L, 57L, 77L, 52L, 87L, 
          FALSE
      )))
  
  }
  
  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 );
  }