title: Count Obtuse Angles Circle K Equidistant Points 2 Given Points
signature: count_obtuse_angles_circle_k_equidistant_points_2_given_points <- function(a, b, k) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(a, b, k, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(a, b, k), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          83L, 98L, 86L, 
          14L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          3L, 39L, 87L, 
          35L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          11L, 96L, 30L, 
          -56L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          50L, 67L, 48L, 
          16L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          40L, 16L, 32L, 
          -25L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          62L, 86L, 76L, 
          23L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          40L, 78L, 71L, 
          32L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          66L, 11L, 74L, 
          -56L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          6L, 9L, 19L, 
          2L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          25L, 5L, 5L, 
          -21L
      )))
  
  }
  
  main()
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 );
  }