ZOJ Problem Set - 2517
An ellipse can be determined by a pair of a and b, the half lengths of its horizontal and vertical axes, respectively (as shown in Figure 1). CYJJ loves ellipses so much that she plans to paint the walls of her room with all kinds of crossed ellipses. The two ellipses share the same center and axes as shown in Figure 2.
She has to be so accurate that with any amount of paint, she wants the design to exactly use up the paint. Well, it is a good exercise to her students. So you are assigned to do this homework now.
221.43 10 5 5 314 10 10 11Sample Output:
Author: CHEN, Yue
Source: CYJJ's Funny Contest #2, Relaxing on Math