title: Check Given Circle Lies Completely Inside Ring Formed Two Concentric Circles
signature: bool checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles(int r0, int r10, int r11, int x1, int y1) {
test_code: #include <algorithm>
  #include <assert.h>
  #include <cstdlib>
  #include <iostream>
  #include <map>
  #include <set>
  #include <string>
  #include <tuple> 
  #include <unordered_map>
  #include <vector>
  #include <math.h>
  #include <cmath>
  #include <bits/stdc++.h>
  #include <numeric>
  #include <functional>
  
  using namespace std;
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(bool actual, bool expected){
      return actual == expected;
  }
  
  string driver(int r0, int r10, int r11, int x1, int y1, bool expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(r0, r10, r11, x1, y1), expected)){
              return "PASSED";
          }
          return "FAILED";
      }
      catch (const std::overflow_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::runtime_error& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (const std::exception& exception_obj)
      {
          return typeid(exception_obj).name();
      }
      catch (...)
      {
          return "UNK_ERROR";
      }
  }
  
  int main() {
      string result = "";
  
      result = driver(8, 4, 2, 6, 0, true); 
      cout << "TEST-" << 0 << "..."
           <<  result
           << "\n";
  
      result = driver(400, 1, 10, 74, 38, true); 
      cout << "TEST-" << 1 << "..."
           <<  result
           << "\n";
  
      result = driver(1, 400, 10, 74, 38, false); 
      cout << "TEST-" << 2 << "..."
           <<  result
           << "\n";
  
      result = driver(61, 40, 2, 50, 0, true); 
      cout << "TEST-" << 3 << "..."
           <<  result
           << "\n";
  
      result = driver(60, 49, 68, 77, 71, false); 
      cout << "TEST-" << 4 << "..."
           <<  result
           << "\n";
  
      result = driver(88, 10, 69, 71, 26, false); 
      cout << "TEST-" << 5 << "..."
           <<  result
           << "\n";
  
      result = driver(60, 79, 92, 29, 38, false); 
      cout << "TEST-" << 6 << "..."
           <<  result
           << "\n";
  
      result = driver(26, 88, 75, 84, 10, false); 
      cout << "TEST-" << 7 << "..."
           <<  result
           << "\n";
  
      result = driver(33, 65, 57, 21, 61, false); 
      cout << "TEST-" << 8 << "..."
           <<  result
           << "\n";
  
      result = driver(70, 57, 77, 52, 87, false); 
      cout << "TEST-" << 9 << "..."
           <<  result
           << "\n";
  
      return 0;
  }
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 );
  }