1149: Mona Lisa's smile

内存限制:8 MB 时间限制:1.000 S 标准输入输出
题目类型:传统 评测方式:文本比较 上传者:
提交:2 通过:2 通过率:100%

题目描述

When Leonardo da Vinci's famous painting "Mona Lisa's smile" was born, Leonardo da Vinci was ready to hang it on the wall. First, take a closer look. In order to hang the picture, you need to nail a nail in the wall. After the nail is nailed, the connecting line between the nail and the four corners of the wall divides the wall into several disjoint areas with an area greater than zero. Leonardo da Vinci is not only a master of art, but also a mathematical genius. He wanted to know: which of these disjoint areas has the smallest area? Can you help him figure it out? Suppose the wall is a square with side length A, and the distance between the nail and the upper and left margins of the wall are B and C respectively.

输入格式

The input has multiple cases (no more than 100) of test data.

 

Each test case occupies one line, which are three integers A1 ≤ A ≤ 100)、B0 ≤ B ≤ Aand C0 ≤ C ≤ A, representing the side length of the square wall and the distance between the nail and the upper and left margins of the wall.

 

The end of input will be represented by a line of test case where AB and C are equal to 0. This test case should not be processed.

输出格式

Each test case outputs a line, which is a real number, that is, the area of the smallest area, which is rounded to one decimal place.

输入样例 复制

4 1 1
6 2 1
0 0 0

输出样例 复制

2.0
3.0