• <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>
            心如止水
            Je n'ai pas le temps
            posts - 400,comments - 130,trackbacks - 0
            超簡單題。
            以下是我的代碼:
            #include <cstdio>
            #include 
            <cmath>
            using namespace std;

            const double eps = 1e-8;

            double d ( double x1, double y1, double x2, double y2 )
            {
                
            return ( x1 - x2 ) * ( x1 - x2 ) + ( y1 - y2 ) * ( y1 - y2 );
            }

            int main ()
            {
            #ifndef ONLINE_JUDGE
                freopen ( 
            "data.in""r", stdin );
            #endif
                
                
            int n;
                
            double x1, y1, x2, y2, x, y, ansx, ansy;
                
            bool found;
                
                
            while ( scanf( "%d%lf%lf%lf%lf"&n, &x1, &y1, &x2, &y2 ) == 5 )
                {
                    found 
            = false;
                    
            for ( int i = 1; i <= n; i++ )
                    {
                        scanf ( 
            "%lf%lf"&x, &y );
                        
            if ( found )
                            
            continue;
                        
            if ( 4 * d ( x1, y1, x, y ) <= d ( x2, y2, x, y ) )
                        {
                            found 
            = true;
                            ansx 
            = x;
                            ansy 
            = y;
                        }
                    }
                    
                    
            //printf ( "%f\n", (double)20000*20000*2 );
                    
                    
            if ( !found )
                        printf ( 
            "The gopher cannot escape.\n" );
                    
            else
                        printf ( 
            "The gopher can escape through the hole at (%.3f,%.3f).\n", ansx, ansy );
                }
                
                
            return 0;
            }
            posted on 2011-09-08 00:11 lee1r 閱讀(659) 評論(1)  編輯 收藏 引用 所屬分類: 題目分類:基礎(chǔ)/模擬

            FeedBack:
            # re: UVa 10310 Dog and Gopher
            2011-09-08 03:13 | getchar
            還沒睡阿  回復(fù)  更多評論
              
            精品精品国产自在久久高清| 99久久综合狠狠综合久久| 国产美女久久久| 蜜臀av性久久久久蜜臀aⅴ| 久久九九兔免费精品6| 囯产精品久久久久久久久蜜桃| 中文字幕无码免费久久| 丁香狠狠色婷婷久久综合| 久久99精品国产麻豆蜜芽| 777午夜精品久久av蜜臀| 99久久国产亚洲高清观看2024 | 久久久99精品一区二区| 97香蕉久久夜色精品国产| 成人妇女免费播放久久久| 亚洲国产成人久久综合一区77 | 国产精品对白刺激久久久| 国产成人精品久久| 亚洲午夜久久久久妓女影院| 久久国产午夜精品一区二区三区| 色欲综合久久躁天天躁蜜桃| 理论片午午伦夜理片久久| 久久成人影院精品777| 狠狠精品久久久无码中文字幕| 久久这里只有精品久久| 久久久噜噜噜久久熟女AA片| 久久综合视频网站| 久久久久久九九99精品| 日韩欧美亚洲综合久久| 久久精品国产亚洲Aⅴ蜜臀色欲| 久久亚洲精品中文字幕| 久久国产免费直播| 久久综合亚洲色一区二区三区 | 亚洲精品无码久久久久久| 久久国产免费直播| 国产一区二区精品久久岳| 日韩精品久久久久久| 97久久香蕉国产线看观看| 浪潮AV色综合久久天堂| 久久亚洲精精品中文字幕| 无码人妻久久一区二区三区免费丨 | 999久久久无码国产精品|