摘要: 题意:给出n个宝物,m个寻宝人。每个寻宝人对n个宝物都有一个估价。从这些估价中挑出某些,是的价值差最小。dfs。。没什么好说的,暴力枚举! 1 /* 2 搜索+枚举 3 */ 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 const int Max = 0x7fffffff; 11 struct Node{ 12 int val[ 10 ]; 13 }a[ 10 ]; 14 struct Node2{ 15 int num[ 10 ]; 16 int c... 阅读全文
posted @ 2013-07-19 21:42 xxx0624 阅读(300) 评论(0) 推荐(0) 编辑