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

            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            <2009年5月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            常用鏈接

            留言簿(8)

            隨筆檔案

            文章檔案

            Friends

            OJ

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            中文字幕热久久久久久久| 亚洲色大成网站www久久九| 亚洲精品无码久久久久去q | 国内精品伊人久久久久| 精品久久8x国产免费观看| 青青草原综合久久大伊人精品| 国产农村妇女毛片精品久久 | 一极黄色视频久久网站| 久久天天躁狠狠躁夜夜96流白浆| 久久精品国产第一区二区| 97久久国产露脸精品国产| 久久成人影院精品777| 2021国内精品久久久久久影院| 99国内精品久久久久久久| 欧美精品久久久久久久自慰| 精品久久久久久久久久中文字幕 | 亚洲中文久久精品无码ww16| 91精品国产91久久| 国产综合久久久久久鬼色| 一本大道久久东京热无码AV| 91久久精品视频| 久久精品夜夜夜夜夜久久| 少妇久久久久久久久久| 婷婷久久精品国产| 久久久久这里只有精品| 久久久久亚洲爆乳少妇无| 精品国产乱码久久久久久郑州公司| 亚洲综合久久夜AV | 久久久99精品成人片中文字幕| 狠狠狠色丁香婷婷综合久久俺| 久久精品www人人爽人人| 久久精品国产亚洲AV影院| 久久精品国产2020| 久久综合久久综合亚洲| 国产精品久久久久免费a∨| 久久久久久国产精品无码下载| 97久久精品人人做人人爽| 国产成人久久精品麻豆一区| 久久久精品国产亚洲成人满18免费网站| 99久久免费国产精品热| 久久精品无码一区二区三区日韩|