• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 74,  comments - 33,  trackbacks - 0
            Mayan Pyramid
            Time Limit: 1000MS Memory Limit: 65536K
            Total Submissions: 850 Accepted: 84

            Description

            When a king dies, Mayan people build a pyramid as a monument. The pyramid is a tetrahedron. So the bottom of the pyramid is a triangle. One side of the triangle represents the year of the kings death, another represents the month, and the last represents the day. The height of the pyramid represents the king's age.

            In the following picture, we see a Mayan pyramid. We have already known the coordinates of A, B and C. And we know the height of P. Q is the projection of P. Because of the Mayan religion, they want PD2+PE2+PF2 to be as small as possible.

            Input

            The input consists of one or more test cases ended with EOF. Each line contains one test case. Each test case contains 7 non-negative float numbers meaning the coordinates of A, B, C and the height of P. All numbers are less than 1000.

            Output

            For each test case, output the coordinates of Q in a single line. Round all numbers to the second digit after the decimal point.

            Sample Input

            0 0 2 0 1 1.73205 1

            Sample Output

            1.00 0.58
            題目要求使PD2+PE2+PF2最小的點P在底面上的投影Q的坐標。因為高一定了,所以就轉(zhuǎn)化為求使QD2+QE2+QF2最小的點Q,也就是三角形點一點到三邊的距離的平方和最小。
            這個點是重心的等角共軛點,求等角共軛點的方法:先求出重心關于三邊的對稱點,由這三個對稱點組成的三角形的外心即為所求。
            方法就是這樣。至于怎么實現(xiàn)就是簡單的事情了..計算幾何還是很繁瑣的啊....
             
            posted on 2008-12-29 11:07 KNIGHT 閱讀(224) 評論(0)  編輯 收藏 引用
            <2009年3月>
            22232425262728
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            常用鏈接

            留言簿(8)

            隨筆檔案

            文章檔案

            Friends

            OJ

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久久亚洲欧洲日产国码aⅴ| 亚洲国产精品高清久久久| 久久久久香蕉视频| 青青草国产精品久久| 国内精品久久久久久不卡影院| 色播久久人人爽人人爽人人片AV| 久久男人中文字幕资源站| 久久国产乱子伦精品免费强| 伊人热人久久中文字幕| 久久精品国产精品亚洲艾草网美妙| 狠狠久久综合伊人不卡| 久久综合噜噜激激的五月天| 欧美激情精品久久久久久久| 久久亚洲精品人成综合网| 伊人久久亚洲综合影院| 国产精品日韩深夜福利久久| 亚洲国产日韩欧美久久| 久久无码AV中文出轨人妻| 日本一区精品久久久久影院| 无码AV波多野结衣久久| 性做久久久久久久| 狠狠色丁香婷婷综合久久来 | 亚洲人成网站999久久久综合 | 久久国产香蕉一区精品| 国产国产成人精品久久| 国产精品视频久久久| 久久国产一区二区| 日本欧美国产精品第一页久久| 精品人妻伦一二三区久久| 欧美午夜精品久久久久久浪潮| 久久久久国产一区二区| 亚洲国产成人久久笫一页| 久久夜色精品国产噜噜噜亚洲AV| 久久人爽人人爽人人片AV| 久久激情五月丁香伊人| av色综合久久天堂av色综合在| 国产精品9999久久久久| 精品久久久一二三区| 国产日韩久久免费影院| 久久久久亚洲AV无码麻豆| 亚洲一区精品伊人久久伊人 |