UVa 190 Circle Through Three Points:求不共线三点所确定的圆的方程2014-07-31 csdn博客 synapse7
190 - Circle Through Three Points
Time limit: 3.000 secondshttp://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=126The solution is to be printed as an equation of the form

and an equation of the form

Each line of input to your program will contain the x and y coordinates of three points, in the order

,

,

,

,

,

. These coordinates will be real numbers separated from each other by one or more spaces.

Your program must print the required equations on two lines using the format given in the sample below. Your computed values for h, k, r, c, d, and e in Equations 1 and 2 above are to be printed with three digits after the decimal point. Plus and minus signs in the equations should be changed as needed to avoid multiple signs before a number. Plus, minus, and equal signs must be separated from the adjacent characters by a single space on each side. No other spaces are to appear in the equations. Print a single blank line after each equation pair.