• [C] Cutting Straws

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • TT wants to drink some cola. But the problem is that the careless TT lost her straw!
    The saying goes, a girl is in troubles while a guy comes to help.
    So, it's the showtime of Mr. Cai now!

    Mr. Cai found some rings and is going to cut them to make some straws.
    The knife is a round, its center is at (x, y) and its radius is R. The ring should be put at (rx, ry) and its outer radius is r. After the knife dropped down, the area of ring which is not covered by the knife will be maked to the straws.
    But you know, all beautiful girls not own a big mouth. TT is a beautiful girl. The area of the straw couldn't be too big. But TT wants to drink as much as possible. So the area of the straw should be A.

    The hero is not easy to be. Now Mr. Cai ask you to help him to solve this question.
  • 输入
  • This problem contains serveral cases.
    Each case has seven numbers x, y, R, rx, ry, r and A. 0 <= x, y, rx, ry <= 100, 0 < R, r <= 100)
  • 输出
  • For each problem, you should output the maximum inner radius of the ring to meet the request of TT. Six decimal places.
    If there's no solution then output "TT kicks Mr. Cai".
  • 样例输入
  • 0 0 2 2 0 2 4.913479
    
  • 样例输出
  • 0.000710
    
  • 提示
  • 来源
  • XadillaX
  • 操作

显示春菜