• <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>
            先確定窗口左上角可能出現的區域,方法是對每個點確定這樣一個區域,然后求交。接下來枚舉窗口左上角,計算密碼序列,插入一個set中。最后按字典序輸出這個set。


            /*************************************************************************
            Author: WHU_GCC
            Created Time: 2007-10-21 10:24:05
            File Name: pku3424.cpp
            Description: 
            ***********************************************************************
            */

            #include 
            <iostream>
            #include 
            <string>
            #include 
            <set>
            using namespace std;
            #define out(x) (cout<<#x<<": "<<x<<endl)
            const int maxint=0x7FFFFFFF;
            typedef 
            long long int64;
            const int64 maxint64 = 0x7FFFFFFFFFFFFFFFLL;
            template
            <class T>void show(T a, int n){for(int i=0; i<n; ++i) cout<<a[i]<<' '; cout<<endl;}
            template
            <class T>void show(T a, int r, int l){for(int i=0; i<r; ++i)show(a[i],l);cout<<endl;}

            int a[110][2];

            set <string> ans;

            int main()
            {
                
            int n;
                
            while (scanf("%d"&n) != EOF)
                
            {
                    
            for (int i = 0; i < n; i++)
                    
            {
                        scanf(
            "%d%d"&a[i][0], &a[i][1]);
                        a[i][
            1= -a[i][1];
                    }

                    ans.clear();
                    
                    
            int x0l = -maxint, x0r = maxint, y0l = -maxint, y0r = maxint;
                    
            for (int i = 0; i < n; i++)
                    
            {
                        x0l 
            >?= a[i][0- 300;
                        x0r 
            <?= a[i][0];
                        y0l 
            >?= a[i][1- 300;
                        y0r 
            <?= a[i][1];
                    }

                    
                    
            for (int x0 = x0r; x0 > x0l; x0--)
                        
            for (int y0 = y0r; y0 > y0l; y0--)
                        
            {
                            
            char t[110];
                            
            int len = 0;
                            
            int flag = 1;
                            
            for (int i = 0; i < n; i++)
                            
            {
                                
            int t1 = a[i][0- x0, t2 = a[i][1- y0;
                                
            if (t1 < 0 || t1 >= 300 || t2 < 0 || t2 >= 300)
                                
            {
                                    flag 
            = 0;
                                    
            break;
                                }

                                
            int tt = t1 / 100 + t2 / 100 * 3;
                                t[len
            ++= '1' + tt;
                            }

                            
            if (flag)
                            
            {
                                t[len] 
            = 0;
                                
            string ttt = t;
                                ans.insert(ttt);
                            }

                        }

                    
            if (ans.size() == 0)
                    
            {
                        printf (
            "NONE\n");
                    }

                    
            else
                    
            {
                        
            for (set <string> ::iterator it = ans.begin(); it != ans.end(); it++)
                            printf (
            "%s\n", it->c_str());
                    }

                    
            break;
                }

                
            return 0;
            }
            posted on 2007-10-22 13:48 Felicia 閱讀(463) 評論(0)  編輯 收藏 引用 所屬分類: 計算幾何
             
            国内精品综合久久久40p| 久久只有这精品99| 伊人久久大香线焦综合四虎| 97久久香蕉国产线看观看| 一本伊大人香蕉久久网手机| 国产成人精品综合久久久| 久久国产精品二国产精品| 久久久精品国产免大香伊| 久久精品人人槡人妻人人玩AV| 亚洲狠狠久久综合一区77777| 久久精品亚洲欧美日韩久久| AV无码久久久久不卡蜜桃| 久久线看观看精品香蕉国产| 性高朝久久久久久久久久| 亚洲中文字幕久久精品无码喷水| 国产精品一久久香蕉国产线看 | 久久婷婷色综合一区二区| 97久久超碰成人精品网站| 久久99精品久久久久久噜噜| 亚洲午夜久久久久久久久电影网| 伊人丁香狠狠色综合久久| 伊人久久大香线蕉av不卡| 久久人妻少妇嫩草AV无码蜜桃| 九九久久自然熟的香蕉图片| 久久人做人爽一区二区三区 | 武侠古典久久婷婷狼人伊人| 97久久香蕉国产线看观看| 久久午夜夜伦鲁鲁片免费无码影视 | 久久夜色精品国产亚洲| 久久AⅤ人妻少妇嫩草影院| 狠狠干狠狠久久| 欧美午夜精品久久久久免费视| 久久婷婷色香五月综合激情 | 久久久国产精品网站| 日韩欧美亚洲综合久久| 久久亚洲国产中v天仙www| 久久发布国产伦子伦精品| 99久久免费国产精品特黄| 久久久久久免费视频| 久久这里的只有是精品23| 伊人久久一区二区三区无码|