摘要: 第一道用搜索码的、得纪念一下 #include #include #include #include #include #include using namespace std;int n;int visit[10], a[10];void dfs(int pos) { if (pos == n... 阅读全文
posted @ 2015-10-06 13:21 Tovi 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 题目传送门:点击打开链接 //stl里面的next_permutation函数的运用 #include #include #include #include #include #include using namespace std;char b[10], c[10];int main() { ... 阅读全文
posted @ 2015-10-06 11:07 Tovi 阅读(103) 评论(0) 推荐(0) 编辑