摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1002n<=4,数不大枚举,从(1,1)枚举到(n,n),但是第三组数据通不过,我的思路是有错误的,用回溯的方法,嗯,挺神奇的方法,虽然以前也用过回溯,还是有点震惊,以上是闲话代码:#include<iostream>#include<cstdio>#include<string>#include<cstring>#define MAX(a,b)a>b?a:busing namespace std;int map 阅读全文
posted @ 2012-02-24 18:14 快乐. 阅读(190) 评论(0) 推荐(0) 编辑