2012年7月21日
摘要: 这是用dfs写出来的,照样调试用了很多时间,有待加强啊!!下面贴出代码,以作纪念。View Code 1 /*{ 2 ID:jzy3209981 3 PROG:holstein 4 LANG:C++ 5 }*/ 6 #include<stdio.h> 7 #include<iostream> 8 #include<string.h> 9 #include<math.h>10 using namespace std;11 12 int scoop[15][25];13 int vitamin[25];14 int minn;15 int order 阅读全文
posted @ 2012-07-21 21:02 醉春雨 阅读(129) 评论(0) 推荐(0)
摘要: 悲剧啊!这么简单的题想了一天愣是没想到,枚举就可以了…………dfs也可以,回去再写一遍。深刻的教训!!下面贴出代码,匆忙写出来的,没有优化代码,做个纪念。View Code 1 /*{ 2 ID:jzy3209981 3 PROG:holstein 4 LANG:C++ 5 }*/ 6 #include<stdio.h> 7 #include<iostream> 8 #include<string.h> 9 #include<math.h>10 using namespace std;11 12 int scoop[15][25];13 int 阅读全文
posted @ 2012-07-21 16:40 醉春雨 阅读(118) 评论(0) 推荐(0)