• <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>

            Why so serious? --[NKU]schindlerlee

            2009年11月13日星期五.sgu486 sgu488 sgu496

            2009年11月13日星期五.sgu486 sgu488 sgu496
            今天去上午去實驗室找老師,下午買了點咳嗽藥,睡了很久,晚上查了查明天去北京的路線,
            然后才起來今天還沒做題....

            上次sgu比賽沒看到。。。
            昨天wanbo說上次比賽中看到大家切題跟切菜一樣,于是就看看,挑了三個過的人數多的,
            都是簡單題,3個1Y,Oh yeah,今天早睡,明天去北京見騰訊校園關系部的那個姐姐..


            sgu486: Bulls and Cows簡單題
            sgu488:    Dales and Hills 動態規劃
            O(n)的掃描,四個數組

            LU   ^    ^  RU     
                /      \       
               /        \      
              /          \     
                               
              \          /     
               \        /      
                \      /       
            LD   v    v  RD    

            邊界條件考慮好,搞清關系即可
                               
            sgu496:496     L-Shapes計算幾何
            點積判零即可
            貼些代碼,計算幾何苦手可以試試這種風格。

            const int N = 5050;
            struct point_t { //struct 最好加_t以示清晰,加多了就習慣了
                int x,y;
                point_t(){}
                point_t(int a,int b){x = a,y = b;}
            }L[N][2];

            point_t operator + (point_t a,point_t b) { return point_t (a.x + b.x,a.y + b.y);}
            point_t operator - (point_t a,point_t b) { return point_t (a.x - b.x,a.y - b.y);}
            bool operator == (point_t a,point_t b) { return a.x == b.x && a.y == b.y;}

            int dot_mul(point_t a,point_t b) { return a.x * b.x + a.y * b.y;}
            bool isvertical(point_t a,point_t b,point_t c) { return dot_mul(a-b,b-c) == 0; }


            posted on 2009-11-13 22:41 schindlerlee 閱讀(1217) 評論(0)  編輯 收藏 引用 所屬分類: 解題報告

            国产亚洲精品久久久久秋霞| 久久综合九色综合97_久久久| 久久国产午夜精品一区二区三区| 美女写真久久影院| 久久久无码精品午夜| 伊人久久无码中文字幕| 伊人久久精品线影院| 久久久久久久久久久久久久| 91久久婷婷国产综合精品青草 | 国产精品成人精品久久久| 麻豆久久| 欧美牲交A欧牲交aⅴ久久 | 亚洲欧美国产日韩综合久久| 亚洲AV日韩精品久久久久| 国产精品午夜久久| 久久综合狠狠综合久久| 亚洲国产一成久久精品国产成人综合 | 日本精品久久久久中文字幕| 久久亚洲精品成人无码网站| 99久久精品国产一区二区蜜芽| 伊人久久大香线蕉av一区| 久久91这里精品国产2020| 久久国产亚洲高清观看| 国产毛片欧美毛片久久久| 亚洲精品tv久久久久| 国产成人精品久久| 久久综合久久综合九色| 亚洲av日韩精品久久久久久a| 精品久久久无码21p发布| 伊人 久久 精品| 久久婷婷国产剧情内射白浆| 久久久久久亚洲精品不卡| 久久国产精品一区| 久久WWW免费人成—看片| 国产精品亚洲综合专区片高清久久久| 人妻无码中文久久久久专区| 久久亚洲精品无码VA大香大香| 国产精品乱码久久久久久软件| 伊人 久久 精品| 久久亚洲私人国产精品| 久久久久无码精品国产不卡|