锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久93精品国产91久久综合,久久久精品人妻一区二区三区蜜桃,久久综合伊人77777麻豆http://m.shnenglu.com/AmazingCaddy/category/13468.htmlzh-cnMon, 15 Aug 2011 08:16:48 GMTMon, 15 Aug 2011 08:16:48 GMT60hdu 3918 Beijuhttp://m.shnenglu.com/AmazingCaddy/archive/2011/08/13/153283.htmlAmazingCaddyAmazingCaddySat, 13 Aug 2011 08:25:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2011/08/13/153283.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/153283.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2011/08/13/153283.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/153283.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/153283.html闃呰鍏ㄦ枃

]]>
sgu 435 UFO Circleshttp://m.shnenglu.com/AmazingCaddy/archive/2010/10/05/128636.htmlAmazingCaddyAmazingCaddyMon, 04 Oct 2010 18:08:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/10/05/128636.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/128636.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/10/05/128636.html#Feedback3http://m.shnenglu.com/AmazingCaddy/comments/commentRss/128636.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/128636.html闃呰鍏ㄦ枃

]]>
eoj 2830 Hamster 2http://m.shnenglu.com/AmazingCaddy/archive/2010/09/29/128002.htmlAmazingCaddyAmazingCaddyTue, 28 Sep 2010 16:27:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/09/29/128002.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/128002.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/09/29/128002.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/128002.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/128002.html闃呰鍏ㄦ枃

]]>
hdu 2966 In case of failurehttp://m.shnenglu.com/AmazingCaddy/archive/2010/09/07/126077.htmlAmazingCaddyAmazingCaddyTue, 07 Sep 2010 03:26:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/09/07/126077.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/126077.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/09/07/126077.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/126077.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/126077.html闃呰鍏ㄦ枃

]]>
hdu 3492 Segmenthttp://m.shnenglu.com/AmazingCaddy/archive/2010/08/06/122473.htmlAmazingCaddyAmazingCaddyFri, 06 Aug 2010 10:26:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/08/06/122473.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/122473.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/08/06/122473.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/122473.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/122473.html闃呰鍏ㄦ枃

]]>
pku 1418 Viva Confettihttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121256.htmlAmazingCaddyAmazingCaddySun, 25 Jul 2010 11:14:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121256.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/121256.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121256.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/121256.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/121256.html闃呰鍏ㄦ枃

]]>
hdu 3471 England vs Germanyhttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121234.htmlAmazingCaddyAmazingCaddySun, 25 Jul 2010 04:21:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121234.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/121234.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121234.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/121234.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/121234.html闃呰鍏ㄦ枃

]]>
hdu 3437 Gardenhttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121232.htmlAmazingCaddyAmazingCaddySun, 25 Jul 2010 04:14:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121232.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/121232.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/25/121232.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/121232.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/121232.html闃呰鍏ㄦ枃

]]>
pku 3608 Bridge Across Islandshttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/12/120158.htmlAmazingCaddyAmazingCaddyMon, 12 Jul 2010 14:42:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/12/120158.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/120158.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/07/12/120158.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/120158.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/120158.htmlhttp://124.205.79.250/JudgeOnline/problem?id=3608

鏃嬭漿鍗″3鐨勭粡鍏擱鐩紝鐪嬬潃緗戜笂鏌愮瘒璁烘枃鍐欑殑錛屽啓浜嗕竴涓笅鍗堣繕鏄疻A錛屾渶鍚庡弬鑰冧簡浜唄aozi鐨勪唬鐮侊紝榪樻槸WA錛屽師鏉aozi鐨勪唬鐮佷腑灝嗗鉤琛岃窡鍏朵腑涓縐嶆儏鍐靛悎騫跺湪涓璧峰啓浜嗭紝綺懼害璋冨緱寰堥珮錛屼絾鏄垜鐨勭簿搴﹀お浣庝簡錛岃皟鏁寸簿搴︿箣鍚庤繃浜嗐備絾鏄垜瑙夊緱榪欓鐨勭簿搴︽槸涓嶇敤閭d箞楂樼殑錛屽師鍥犲簲璇ユ槸鍑哄湪浜嗭紝涓ょ鎯呭喌鐨勫悎騫朵笂闈紝鍚庢潵鎴戞敼鎴愪笁縐嶆儏鍐碉紝綺懼害灝?e-8榪囦簡錛岀湅鏉ユ槸閭e摜闂銆備唬鐮佸涓嬶細
pku 3608



]]>
2008-2009 world final F棰?Deer-Proof Fencehttp://m.shnenglu.com/AmazingCaddy/archive/2010/06/03/117137.htmlAmazingCaddyAmazingCaddyThu, 03 Jun 2010 12:47:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/06/03/117137.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/117137.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/06/03/117137.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/117137.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/117137.htmlhttp://acmicpc-live-archive.uva.es/nuevoportal/

鍏堥澶勭悊鎵鏈夊嚫鍖咃紝鐒跺悗dp銆?br>
 1#include<iostream>
 2#include<cmath>
 3#include<algorithm>
 4#include<complex>
 5#include<vector>
 6#include<stdio.h>
 7using namespace std;
 8typedef complex<double> point;
 9const int maxn = 530;
10const double eps = 1e-8;
11const double inf = 1e10;
12const double pi = acos( -1.0 );
13double dp[maxn];
14int c[10];
15bool cmp( point p1, point p2 )return real(p1) < real(p2) || real(p1) == real(p2) && imag(p1) < imag(p2); }
16double operator^( point p1, point p2 )return imag( conj( p1 ) * p2 ); }
17int dblcmp( double x )return x < -eps ? -1 : x > eps ; }
18double minn( double x, double y )return x < y ? x : y; }
19void convex_hull( vector<point> &p, vector<point> &poly )
20{
21    int sz = 0, i, k;
22    poly.clear( );
23    sort( p.begin( ), p.end( ), cmp );
24    for( i = 0; i < p.size( ); ++i )
25    {
26        while( sz >= 2 && dblcmp( poly[sz-2- p[i] ^ poly[sz-1- p[i] ) <= 0 )
27            poly.pop_back( ), sz--;
28        poly.push_back( p[i] );
29        sz++;
30    }

31    k = sz;
32    for( i = p.size( ) - 2; i >= 0; i-- )
33    {
34        while( sz > k && dblcmp( poly[sz-2- p[i] ^ poly[sz-1- p[i] ) <= 0 )
35            poly.pop_back( ), sz--;
36        poly.push_back( p[i] );
37        sz++;
38    }

39    poly.pop_back( );
40}

41
42int main( )
43{
44    double a[maxn], x, y;
45    int i, j, q, n, m, len, k = 1, sz;
46    vector<point> p, poly, poly1;
47    while1 )
48    {
49        p.clear( );
50        scanf("%d%d",&n,&m);
51        if( n == 0 && m == 0 )break;
52        for( i = 0; i < n; i++ )
53        {
54            scanf("%lf%lf",&x,&y);
55            p.push_back( point( x, y ) );
56        }

57        len = 1 << n;
58        for( i = 1; i < len; i++ )
59        {
60            poly.clear( );
61            poly1.clear( );
62            j = i; q = 0;
63            while( j )
64            {
65                if( j & 1 ) poly.push_back( p[q] );
66                q++
67                j >>= 1;
68            }

69            convex_hull( poly, poly1 );
70            sz = poly1.size( );
71            for( a[i] = 2 * pi * m, j = 0; j < sz; j++ )
72                 a[i] += abs( poly1[j] - poly1[(j+1)%sz] );
73        }

74        for( dp[0= 0.0, i = 1; i < len; i++ )
75            dp[i] = inf;
76        for( i = 0; i < len; i++ )
77            for( j = 1; j < len; j++ )
78                if( ( j & i ) == 0 )
79                    dp[i|j] = minn( dp[i] + a[j], dp[i|j] );
80        printf("Case %d: length = %.2lf\n",k++,dp[len-1]);
81    }

82    return 0;
83}
 
84


]]>
fzu 1918 John鈥檚 Directionhttp://m.shnenglu.com/AmazingCaddy/archive/2010/06/01/116851.htmlAmazingCaddyAmazingCaddyMon, 31 May 2010 17:27:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/06/01/116851.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/116851.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/06/01/116851.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/116851.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/116851.html闃呰鍏ㄦ枃

]]>
eoj 1990 Find the Pointhttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/14/115412.htmlAmazingCaddyAmazingCaddyFri, 14 May 2010 15:11:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/14/115412.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/115412.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/14/115412.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/115412.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/115412.html闃呰鍏ㄦ枃

]]>
hdu 3408 Elune鈥檚 Arrowhttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/13/115244.htmlAmazingCaddyAmazingCaddyWed, 12 May 2010 16:06:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/13/115244.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/115244.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/13/115244.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/115244.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/115244.html闃呰鍏ㄦ枃

]]>
poj 3525 Most Distant Point from the Seahttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/03/114218.htmlAmazingCaddyAmazingCaddySun, 02 May 2010 16:41:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/03/114218.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/114218.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/05/03/114218.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/114218.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/114218.html闃呰鍏ㄦ枃

]]>
hdu_3372 Build Fenceshttp://m.shnenglu.com/AmazingCaddy/archive/2010/04/08/111912.htmlAmazingCaddyAmazingCaddyWed, 07 Apr 2010 17:04:00 GMThttp://m.shnenglu.com/AmazingCaddy/archive/2010/04/08/111912.htmlhttp://m.shnenglu.com/AmazingCaddy/comments/111912.htmlhttp://m.shnenglu.com/AmazingCaddy/archive/2010/04/08/111912.html#Feedback0http://m.shnenglu.com/AmazingCaddy/comments/commentRss/111912.htmlhttp://m.shnenglu.com/AmazingCaddy/services/trackbacks/111912.html闃呰鍏ㄦ枃

]]>
超级碰久久免费公开视频| 99久久人人爽亚洲精品美女| 久久国产成人午夜AV影院| 久久精品aⅴ无码中文字字幕重口 久久精品a亚洲国产v高清不卡 | 国产精品一区二区久久精品无码| 久久久久AV综合网成人| 性做久久久久久久| 久久久久久亚洲精品成人| 97热久久免费频精品99| 久久精品国产99国产精品澳门| 国产精品9999久久久久| 久久青青草原综合伊人| 国产精品亚洲综合专区片高清久久久| 久久电影网一区| 久久人人爽人人爽人人片AV东京热| 久久99久久成人免费播放| 日本久久久久久久久久| 久久强奷乱码老熟女网站| 亚洲AV无码久久精品成人| 国产精品久久久久久| 久久午夜福利电影| 色欲av伊人久久大香线蕉影院| 亚洲色婷婷综合久久| 国产精品久久久久9999| 久久人妻少妇嫩草AV无码蜜桃| 久久综合亚洲色HEZYO社区 | 亚洲?V乱码久久精品蜜桃| 一本色综合网久久| 婷婷综合久久狠狠色99h| 伊人热热久久原色播放www| 久久精品国产99久久久| 久久久久18| 久久久久人妻一区精品色| 精品久久人人做人人爽综合 | 国产69精品久久久久久人妻精品| 色婷婷久久综合中文久久蜜桃av| 亚洲国产精品热久久| 久久久无码精品亚洲日韩蜜臀浪潮| 久久久精品午夜免费不卡| 狠狠色婷婷久久综合频道日韩 | 中文精品99久久国产|