• <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 閱讀(1227) 評論(0)  編輯 收藏 引用 所屬分類: 解題報告

            四虎亚洲国产成人久久精品| 97久久精品人妻人人搡人人玩 | 亚洲精品无码成人片久久| 久久久久亚洲AV无码专区首JN | 久久精品无码一区二区无码| 99热精品久久只有精品| 国内精品综合久久久40p| 精品午夜久久福利大片| 亚洲欧美精品一区久久中文字幕| 无码人妻久久一区二区三区免费丨| 久久精品嫩草影院| 久久国产免费直播| 蜜臀久久99精品久久久久久| 久久国产精品一国产精品金尊| 久久久免费观成人影院| 99久久免费国产精品热| 色青青草原桃花久久综合| 91久久成人免费| 欧洲精品久久久av无码电影| 区亚洲欧美一级久久精品亚洲精品成人网久久久久 | 91精品免费久久久久久久久| 性做久久久久久久| 伊人久久大香线蕉综合热线| 国产成人久久777777| 久久精品国产亚洲AV麻豆网站| 久久人人爽人人人人爽AV| 伊人久久大香线蕉综合网站| 2020最新久久久视精品爱| 91精品国产色综合久久| 色综合久久综合中文综合网| 99久久国产亚洲综合精品| 久久93精品国产91久久综合| 精品久久一区二区| 久久er国产精品免费观看2| 久久精品国产亚洲AV无码麻豆 | 奇米综合四色77777久久| 久久精品国产亚洲AV蜜臀色欲 | 人妻久久久一区二区三区| 精品久久久久久久久午夜福利| 人妻少妇久久中文字幕| 国产成人精品久久二区二区|