human
Count of obtuse angles in a circle with ' k ' equidistant points between 2 given points | C ++ program to count number of obtuse angles for given two points ..
There are two arcs connecting a and b . Let us count points on both arcs ..
Both arcs have same number of points.
Points on smaller arc is answer.
Driver code"
Solution in Python:
 Write me a code to count of obtuse angles in a circle with ' k ' equidistant points between 2 given points and the other steps required?
assistant
#Here is code to count of obtuse angles in a circle with ' k ' equidistant points between 2 given points and the other steps required.
 def countObtuseAngles ( a , b , k ) :
	c1 = ( b - a ) - 1
	c2 = ( k - b ) + ( a - 1 )
	if ( c1 == c2 ) :
	return 0
	return min ( c1 , c2 )
k , a , b = 6 , 1 , 3
print countObtuseAngles ( a , b , k )