LoKwongho

mm

2018年11月5日 #

N-Queens n皇后问题

摘要: 八皇后问题:规则是皇后不能处于对角线,切皇后不能挨着递归回溯法 求八皇后问题解的个数 1 #include 2 #include 3 using namespace std; 4 const int maxn = 1003; 5 6 int n,sum = 0; 7 vector a; 8 9 bool isValid(int k,int i){ 10 bool ... 阅读全文

posted @ 2018-11-05 14:12 iojafekniewg 阅读(223) 评论(0) 推荐(0) 编辑

1129 Recommendation System

摘要: Recommendation system predicts the preference that a user would give to an item. Now you are asked to program a very simple recommendation system that 阅读全文

posted @ 2018-11-05 12:46 iojafekniewg 阅读(171) 评论(0) 推荐(0) 编辑

导航

My Email guangho2743##foxmail.com : )