2013年9月5日
摘要: #include #include #include #include using std::cout;using std::sort;using std::endl;bool dp[1000010];int n,m;int move[11];int main(){ while(scanf("%d%d",&n,&m)==2) { for(int i=0; i=move[j] && !dp[i-move[j]]) { dp[i]=true; break; ... 阅读全文
posted @ 2013-09-05 16:48 风流monkey 阅读(113) 评论(0) 推荐(0) 编辑