2011年7月29日 星期五

11152 - Colourful Flowers

下圖中為三角形及其內切圓與外接圓的圖形,本題給定三角形的三邊長,請你分別計算黃、藍、紅三色面積。


Input and Output

輸入每列給定三個整數a, b, c分別表示三角形的三邊長,其中0 < a <= b <= c <= 1000。
請你每組資料分別輸出黃、藍、紅的面積,輸出到小數點後4位。

Sample Input

3 4 5

Sample Output

13.6350 2.8584 3.1416

原文出處

沒有留言:

張貼留言