会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
龙渊阁
博客园
首页
新随笔
联系
订阅
管理
2012年10月4日
八皇后问题N种解法
摘要: 主要包括全排列和回溯两类,其中全排列可以递归与非递归,回溯也可以递归与非递归。于是加一起有4种解法。 #include <iostream> #include <algorithm> using namespace std; template <size_t N> struct ArraySizeHelper {char _[N];}...
阅读全文
posted @ 2012-10-04 23:26 紫红的泪
阅读(2119)
评论(0)
推荐(0)
编辑
公告