863 人解决,1058 人已尝试。
1165 份提交通过,共有 3414 份提交。
1.4 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
When placing a board with a pinhole in the middle between an object and a screen, the reversed image of the object will appear on the screen. That is the so-called pinhole imaging.
Assume that we have a candle and a screen. We know the distance
You could assume that the pinhole is very tiny and the screen is large enough.
The input consists of multiple test cases. The first line of input contains an integer
Each test case is on a separated line, and it consists three integers:
For each test case, print a single line contains the height of the fire displayed on the screen, rounded to two fractional digits.
2 1 1 1 2 1 2
1.00 1.00
863 人解决,1058 人已尝试。
1165 份提交通过,共有 3414 份提交。
1.4 EMB 奖励。
创建: 16 年,1 月前.
修改: 7 年,6 月前.
最后提交: 1 周,3 天前.
来源: The 4th Baidu Cup Central China Invitational Programming Contest