摘要: int gcd(int a,int b){ if(b==0) return a; else return gcd(b,a%b);} 阅读全文
posted @ 2016-01-20 13:42 我不萌、我要高冷 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 题意:模拟国际象棋马的走棋方式,和中国象棋一样马走日,8X8的棋盘,问从起点到终点的最短步数,国际象棋中数字代表行row,字母代表列column,思路:记忆化深搜、 1 #include 2 #include 3 const int qq=20+5,no=1e7; 4 int tx,ty,minx;... 阅读全文
posted @ 2016-01-20 10:09 我不萌、我要高冷 阅读(291) 评论(0) 推荐(0) 编辑