上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: #include#include#include#includeusing namespace std;int fa[7000];int dp[7000][5];int vis[7000];int n;void dfs(int rt){ int i,j,k; vis[rt]=1; ... 阅读全文
posted @ 2015-08-01 20:35 sola94 阅读(75) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int vis_tuan[500+10];int vis[30000+10];int mat[30000+10][510];int fa[30000+10];int ans;int... 阅读全文
posted @ 2015-07-31 19:37 sola94 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;struct Node{ double x,y;};Node node[1100];int vis[1100];double mat[1005][1005];int fa[1005];int... 阅读全文
posted @ 2015-07-31 19:36 sola94 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int v[200],c[200];int dp[30000];int main(){ int n,t; int i,j,k; int cas=1; whi... 阅读全文
posted @ 2015-07-31 01:45 sola94 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 母函数#include#include#include#include#includeusing namespace std;int dp[50];struct Clas{ int v,c;};Clas cla[50];int c1[500000];int c2[500000];int t,n... 阅读全文
posted @ 2015-07-30 16:53 sola94 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int mat[200][200];int dp[200];int vis[200];int n;int dfs(int x){ //printf("%d........\n",x); int i,j... 阅读全文
posted @ 2015-07-30 11:20 sola94 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int a[300000];int main(){ int n,m; int i,j,k; int op,num; scanf("%d%d",&n,&m);... 阅读全文
posted @ 2015-07-30 00:16 sola94 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int a[200],b[200];int vis[200];int main(){ int n; int i,j,k; while(scanf("%d",&n)!=EOF)... 阅读全文
posted @ 2015-07-30 00:15 sola94 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;struct Coin{ int v,c;};Coin coin[200];int dp[100000+100];int main(){ int t,n,m; int p,h,c; ... 阅读全文
posted @ 2015-07-29 15:15 sola94 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 转化为01背包#include#include#include#includeusing namespace std;struct Rice{ int v,w,c;};Rice r[120];int dp[50000];int main(){ int t,n,m; int p,h,... 阅读全文
posted @ 2015-07-29 13:10 sola94 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页