• <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的坐標。因為高一定了,所以就轉化為求使QD2+QE2+QF2最小的點Q,也就是三角形點一點到三邊的距離的平方和最小。
            這個點是重心的等角共軛點,求等角共軛點的方法:先求出重心關于三邊的對稱點,由這三個對稱點組成的三角形的外心即為所求。
            方法就是這樣。至于怎么實現就是簡單的事情了..計算幾何還是很繁瑣的啊....
             
            posted on 2008-12-29 11:07 KNIGHT 閱讀(219) 評論(0)  編輯 收藏 引用
            <2008年12月>
            30123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910

            常用鏈接

            留言簿(8)

            隨筆檔案

            文章檔案

            Friends

            OJ

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            婷婷久久香蕉五月综合加勒比| 亚洲午夜久久久影院| 亚洲国产精品婷婷久久| 精品久久久久久无码免费| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 精品一区二区久久久久久久网站| 韩国免费A级毛片久久| 久久久久99精品成人片三人毛片 | 亚洲AV无码成人网站久久精品大| 国产V亚洲V天堂无码久久久| 国产精品免费久久久久电影网| 精品国产日韩久久亚洲 | 国产成人久久777777| 日产精品久久久久久久| 免费观看成人久久网免费观看| 久久九九久精品国产免费直播| 久久久中文字幕| 欧美大香线蕉线伊人久久| 久久伊人色| 国产午夜精品理论片久久影视 | www久久久天天com| 久久福利资源国产精品999| 九九久久精品国产| 亚洲国产成人久久综合碰碰动漫3d | 久久久久久久91精品免费观看| 久久99精品国产一区二区三区| AV无码久久久久不卡蜜桃| 久久无码国产| 久久久久国产一区二区| 日本三级久久网| 久久国产精品-国产精品| 久久久久免费看成人影片| 囯产精品久久久久久久久蜜桃| 欧美麻豆久久久久久中文| 国内精品免费久久影院| 国产ww久久久久久久久久| 久久综合九色综合久99| 成人国内精品久久久久影院VR| 久久―日本道色综合久久| 色偷偷888欧美精品久久久| 国产精品日韩深夜福利久久|