• <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)  編輯 收藏 引用
            <2009年5月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            常用鏈接

            留言簿(8)

            隨筆檔案

            文章檔案

            Friends

            OJ

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久久久久综合网天天| 久久亚洲电影| 国内精品伊人久久久久av一坑 | 一本色道久久88—综合亚洲精品| 性做久久久久久免费观看 | 国产精品欧美久久久久无广告 | 欧美麻豆久久久久久中文| 久久乐国产综合亚洲精品| 久久99国产综合精品免费| 国产精品午夜久久| 精品无码久久久久国产动漫3d| 成人久久精品一区二区三区| 亚洲?V乱码久久精品蜜桃| 久久99精品久久久久婷婷| 久久精品国产精品亜洲毛片| 久久人人爽人人爽人人爽| 欧美激情精品久久久久| 97视频久久久| 无夜精品久久久久久| 久久久久综合网久久| 欧美一区二区三区久久综| 色欲综合久久躁天天躁| 久久精品一区二区影院| 久久国产精品久久久| 亚洲va久久久噜噜噜久久| 亚洲欧美成人久久综合中文网 | 污污内射久久一区二区欧美日韩| MM131亚洲国产美女久久| 综合人妻久久一区二区精品| 久久国产成人| 久久久久成人精品无码 | 久久亚洲精品无码aⅴ大香| 久久久久久亚洲精品不卡| 18岁日韩内射颜射午夜久久成人 | 久久电影网一区| 99久久综合狠狠综合久久止| 久久久亚洲欧洲日产国码aⅴ| 亚洲国产精品无码成人片久久| 亚洲国产精品无码久久青草| 色婷婷久久久SWAG精品| 亚洲国产高清精品线久久|