![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
algorithm example
文章平均质量分 70
heidi_xxy
这个作者很懒,什么都没留下…
展开
-
Example 2.3 n皇后问题
/* * main.cpp * * Created on: 2014年9月14日 * Author: xiangxiyun * Describe: N皇后问题(n大于3) * Input: 输入N皇后个数,以0结束 * Output: 输出棋盘与皇后位置,如无解输出“无解” */ #inc原创 2014-09-14 18:14:43 · 548 阅读 · 0 评论 -
sicily1150 & 魔板
/* * main.cpp * * Created on: 2014年9月14日 */ #include #define MAX 10000 using namespace std; struct moban { int x; int y; int pre; char op; }; moban m[MAX]; int sum; int fpsum; bool comp原创 2014-09-16 09:44:04 · 334 阅读 · 0 评论 -
Example 2.2 倒蛇阵填数
/* * main.cpp * * Created on: 2014年9月13日 * Author: xiangxiyun * * Description: 倒蛇阵填数 * * Example: when N = 4 * Output: 10 11 12 1 * 9 16 13 2 * 8 15 14 3 *原创 2014-09-13 20:12:55 · 1107 阅读 · 0 评论