2018年3月5日

摘要: xdoj 1025 亮亮最近在玩一款叫做“梦想庄园”的经营游戏。在游戏中,你可以耕种,养羊甚至建造纺织厂。 如果你需要制造衣服,你首先得有布匹和毛线。布匹由棉花纺织而成;毛线由羊毛制成,而羊需要饲料才能长出羊毛,最终饲料由小麦和胡萝卜制成。 假设游戏中共有N种物品,第i种物品由其他Ci个物品制成。亮 阅读全文
posted @ 2018-03-05 21:31 xidian_mao 阅读(316) 评论(0) 推荐(0) 编辑
 
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int N=1e4+7; 8 int a[N]; 9 bool dp[107]; 10 vector > ans (107); 11 int n,m; 12 bool cmp (vector x,... 阅读全文
posted @ 2018-03-05 16:50 xidian_mao 阅读(324) 评论(0) 推荐(0) 编辑