title: Check Given Circle Lies Completely Inside Ring Formed Two Concentric Circles
signature: checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles :: Integer -> Integer -> Integer -> Integer -> Integer -> Bool
  checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles r0 r10 r11 x1 y1 = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Bool -> Bool -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: Integer -> Integer -> Integer -> Integer -> Integer -> Bool -> String
  driver r0 r10 r11 x1 y1 expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME r0 r10 r11 x1 y1) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver (8) (4) (2) (6) (0) (True) )
  
      printf "TEST-1...%s\n" (driver (400) (1) (10) (74) (38) (True) )
  
      printf "TEST-2...%s\n" (driver (1) (400) (10) (74) (38) (False) )
  
      printf "TEST-3...%s\n" (driver (61) (40) (2) (50) (0) (True) )
  
      printf "TEST-4...%s\n" (driver (60) (49) (68) (77) (71) (False) )
  
      printf "TEST-5...%s\n" (driver (88) (10) (69) (71) (26) (False) )
  
      printf "TEST-6...%s\n" (driver (60) (79) (92) (29) (38) (False) )
  
      printf "TEST-7...%s\n" (driver (26) (88) (75) (84) (10) (False) )
  
      printf "TEST-8...%s\n" (driver (33) (65) (57) (21) (61) (False) )
  
      printf "TEST-9...%s\n" (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 );
  }