摘要: 方法一:递归求解(1)、从 n 个元素中,选择 m 个元素的组合 #include<iostream> using namespace std; int ans[10],a[20],m,n; bool visited[20]; void output() { int i; for(i=1;i<m;i++) cout<<ans[i]<<" "; cout<<ans[i]<<endl; } void work(int i,int k) { if(i==m+1) { output(); return ; } fo. 阅读全文
posted @ 2012-03-26 18:38 mtry 阅读(1598) 评论(0) 推荐(0)
摘要: ImaginationTime Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KBTotal submit users: 81, Accepted users: 75Problem 11081 : No special judgementProblem descriptionThere are four matrixs blow , Can you image the NEXT matrix from the given information?Input The first line is a integer whic 阅读全文
posted @ 2012-03-26 10:50 mtry 阅读(185) 评论(0) 推荐(0)
摘要: TheMinesweeperGameTime Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KBTotal submit users: 29, Accepted users: 27Problem 11082 : No special judgementProblem description注:以下说明来自百度百科:http://baike.baidu.com/view/30088.htm#1扫雷简介 扫雷最原始的版本可以追溯到1973年一款名为“方块”的游戏。不久之后,“方块”被改写成了游戏“Rlogic”。在“Rlog 阅读全文
posted @ 2012-03-26 10:45 mtry 阅读(343) 评论(0) 推荐(0)