
状态压缩
xiaoyu1_1
学生
展开
-
hdu-4568-Hunter
http://www.2cto.com/kf/201308/236512.html http://blog.youkuaiyun.com/catalyst1314/article/details/19008903 #include #include #include #include #include #include #include #include using namespace s原创 2014-02-09 22:56:17 · 664 阅读 · 0 评论 -
hdu-4539-郑厂长系列故事――排兵布阵 状态压缩dp
http://blog.youkuaiyun.com/catalyst1314/article/details/19015401 http://blog.youkuaiyun.com/z309241990/article/details/8742321 #include #include #include #include using namespace std; int e[220],s[220],c原创 2014-02-10 10:23:36 · 830 阅读 · 0 评论 -
hdu-4778-Gems Fight!---状态压缩dp
http://blog.youkuaiyun.com/dyx404514/article/details/15506601 http://blog.youkuaiyun.com/catalyst1314/article/details/19012251 链接里看的思路,然后写了一下午,晚上改了2个BUG.... #include #include #include #include using namespac原创 2014-02-11 00:10:50 · 576 阅读 · 0 评论 -
hdu-2167-Pebbles--炮兵布阵之类的 状态压缩dp
呵呵,思路清晰爆了,瞬写 #include #include #include #include using namespace std; char ch[100]; int map[16][16]; int s[10000],c[16][10000]; int dp[16][10000]; int n; int count(int h,int x) { int i,sum=0; for(原创 2014-02-10 20:41:42 · 505 阅读 · 0 评论 -
hdu-1074-Doing Homework
状态压缩dp.. #include #include #include #include #include using namespace std; #define inf 0x3f3f3f3f struct node { int d,c; char ch[110]; }p[20]; int n; bool cmp(node a,node b) { return strcmp(a.ch,原创 2014-02-15 01:10:23 · 813 阅读 · 0 评论 -
Codeforces Round #235 (Div. 2) ----D. Roman and Numbers
D. Roman and Numbers time limit per test 4 seconds memory limit per test 512 megabytes input standard input output standard output Roman is a young mathematician, very f原创 2014-03-11 23:12:12 · 687 阅读 · 0 评论