title: Count Obtuse Angles Circle K Equidistant Points 2 Given Points
signature: class Solution {
  
      public Integer countObtuseAnglesCircleKEquidistantPoints2GivenPoints(Integer a, Integer b, Integer k) {
source_py: def count_obtuse_angles_circle_k_equidistant_points_2_given_points(a, b, k):
      c1 = ((b - a) - 1)
      c2 = ((k - b) + (a - 1))
      if (c1 == c2):
          return 0
      return min(c1, c2)
source_cpp: int count_obtuse_angles_circle_k_equidistant_points_2_given_points(int a, int b, int k) {
    int c1 = ( b - a ) - 1;
    int c2 = ( k - b ) + ( a - 1 );
    if ( c1 == c2 ) return 0;
    return min ( c1, c2 );
  }
question_info.extension: java
question_info.entry_fn_name: countObtuseAnglesCircleKEquidistantPoints2GivenPoints
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": 14, "inputs": {"a": 83, "b": 98, "k": 86}}, {"idx": 1, "outputs": 35, "inputs": {"a": 3, "b": 39, "k": 87}}, {"idx": 2, "outputs": -56, "inputs": {"a": 11, "b": 96, "k": 30}}, {"idx": 3, "outputs": 16, "inputs": {"a": 50, "b": 67, "k": 48}}, {"idx": 4, "outputs": -25, "inputs": {"a": 40, "b": 16, "k": 32}}, {"idx": 5, "outputs": 23, "inputs": {"a": 62, "b": 86, "k": 76}}, {"idx": 6, "outputs": 32, "inputs": {"a": 40, "b": 78, "k": 71}}, {"idx": 7, "outputs": -56, "inputs": {"a": 66, "b": 11, "k": 74}}, {"idx": 8, "outputs": 2, "inputs": {"a": 6, "b": 9, "k": 19}}, {"idx": 9, "outputs": -21, "inputs": {"a": 25, "b": 5, "k": 5}}]
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 a, Integer b, Integer k, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(a, b, k,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution(83, 98, 86, 14);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution(3, 39, 87, 35);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution(11, 96, 30, -56);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution(50, 67, 48, 16);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution(40, 16, 32, -25);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution(62, 86, 76, 23);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution(40, 78, 71, 32);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution(66, 11, 74, -56);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution(6, 9, 19, 2);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution(25, 5, 5, -21);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(Integer a, Integer b, Integer k, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(a, b, k),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer 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__