title: Check Given Circle Lies Completely Inside Ring Formed Two Concentric Circles
signature: class Solution {
  
      public Boolean checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles(Integer r0, Integer r10, Integer r11, Integer x1, Integer y1) {
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 );
  }
question_info.extension: java
question_info.entry_fn_name: checkGivenCircleLiesCompletelyInsideRingFormedTwoConcentricCircles
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"r0": 8, "r10": 4, "r11": 2, "x1": 6, "y1": 0}}, {"idx": 1, "outputs": true, "inputs": {"r0": 400, "r10": 1, "r11": 10, "x1": 74, "y1": 38}}, {"idx": 2, "outputs": false, "inputs": {"r0": 1, "r10": 400, "r11": 10, "x1": 74, "y1": 38}}, {"idx": 3, "outputs": true, "inputs": {"r0": 61, "r10": 40, "r11": 2, "x1": 50, "y1": 0}}, {"idx": 4, "outputs": false, "inputs": {"r0": 60, "r10": 49, "r11": 68, "x1": 77, "y1": 71}}, {"idx": 5, "outputs": false, "inputs": {"r0": 88, "r10": 10, "r11": 69, "x1": 71, "y1": 26}}, {"idx": 6, "outputs": false, "inputs": {"r0": 60, "r10": 79, "r11": 92, "x1": 29, "y1": 38}}, {"idx": 7, "outputs": false, "inputs": {"r0": 26, "r10": 88, "r11": 75, "x1": 84, "y1": 10}}, {"idx": 8, "outputs": false, "inputs": {"r0": 33, "r10": 65, "r11": 57, "x1": 21, "y1": 61}}, {"idx": 9, "outputs": false, "inputs": {"r0": 70, "r10": 57, "r11": 77, "x1": 52, "y1": 87}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(Integer r0, Integer r10, Integer r11, Integer x1, Integer y1, Boolean expected){
          try{
              Driver driver = new Driver();
              if (driver.run(r0, r10, r11, x1, y1,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(8, 4, 2, 6, 0, true);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(400, 1, 10, 74, 38, true);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(1, 400, 10, 74, 38, false);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(61, 40, 2, 50, 0, true);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(60, 49, 68, 77, 71, false);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(88, 10, 69, 71, 26, false);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(60, 79, 92, 29, 38, false);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(26, 88, 75, 84, 10, false);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(33, 65, 57, 21, 61, false);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(70, 57, 77, 52, 87, false);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer r0, Integer r10, Integer r11, Integer x1, Integer y1, Boolean expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(r0, r10, r11, x1, y1),expected);
      }
      
      public boolean validateSolution(Boolean actual, Boolean expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__