不要让昨天 占据你的今天 夏午晴天

夏午晴天

2017年4月17日

八皇后问题(dfs)

摘要: 1 #include 2 #include 3 using namespace std; 4 int num = 1; 5 bool a[8], b[16], c[16], vis[8][8]; 6 //a, b, c 数组标记 列 和 斜线 7 //正斜线上位置 x 和 y 相加为一个常数且每个斜线都不相等 8 //反斜线上位置 x 和 y 相减为一个常数且每个斜线都不相等... 阅读全文

posted @ 2017-04-17 22:45 夏晴天 阅读(190) 评论(0) 推荐(0) 编辑

President's Office

摘要: President of Berland has a very vast office-room, where, apart from him, work his subordinates. Each subordinate, as well as President himself, has hi 阅读全文

posted @ 2017-04-17 17:27 夏晴天 阅读(520) 评论(0) 推荐(0) 编辑

导航

Live2D