加载中...

随笔分类 -  dfs之剪枝与优化

摘要:https://www.acwing.com/problem/content/169/ #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 70; int n; 阅读全文
posted @ 2022-09-02 15:08 英雄不问出处c 阅读(44) 评论(0) 推荐(0)
摘要:https://www.acwing.com/problem/content/168/ #include <algorithm> #include <iostream> using namespace std; const int N = 9; // 0- 511 // ones[i] 表示i这个数 阅读全文
posted @ 2022-09-02 14:52 英雄不问出处c 阅读(159) 评论(0) 推荐(0)
摘要:https://www.acwing.com/problem/content/167/ #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 20; int n, 阅读全文
posted @ 2022-09-02 14:44 英雄不问出处c 阅读(51) 评论(0) 推荐(0)