title: Count Obtuse Angles Circle K Equidistant Points 2 Given Points
signature: func countObtuseAnglesCircleKEquidistantPoints2GivenPoints(a int, b int, k int) int {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual int, expected int) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(a int, b int, k int, expected int) string {
      if validateSolution(PLACEHOLDER_FN_NAME(a, b, k),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(83, 
  	98, 
  	86, 14)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(3, 
  	39, 
  	87, 35)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(11, 
  	96, 
  	30, -56)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(50, 
  	67, 
  	48, 16)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(40, 
  	16, 
  	32, -25)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(62, 
  	86, 
  	76, 23)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(40, 
  	78, 
  	71, 32)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(66, 
  	11, 
  	74, -56)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(6, 
  	9, 
  	19, 2)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(25, 
  	5, 
  	5, -21)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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 );
  }