摘要: 这个题我们可以直接顺序往下面暴力,每次选取最大的;View Code #include<iostream>#include<cstring>#include<cstdio>using namespace std;int main( ){ int Case ,n ,m; int map[24][1024],sum[24][1024]; while( scanf( "%d", &Case )==1 ) { while( Case -- ) { memset( map , 0 ,sizeof( map ) );// memse... 阅读全文
posted @ 2012-03-07 21:20 wutaoKeen 阅读(142) 评论(0) 推荐(0) 编辑
摘要: View Code #include<iostream>#include<cstdio>#include<cstring>#include<vector>using namespace std;vector<int>list[124];int value[124],num[124];int dp[124][124];int hash[124];void DFS( int f ,int M ){ int len = list[f].size(); int t=0; t = (num[f]+19)/20; for( int i = t ; 阅读全文
posted @ 2012-03-07 14:57 wutaoKeen 阅读(145) 评论(0) 推荐(0) 编辑