全排列
P1706 全排列问题
终于要写c++的博客了~近期从搜索入手,将暴力算法+剪枝掌握熟练
对于全排列问题,我们使用dfs,将搜索的当前状态设定为当前位置,通过遍历1~n,若该数没有被使用过,便将该数填入,然后寻找下一位,直到n+1位跳出递归。
由此,我们可以大概抽象出dfs的基本步骤:
1 | void dfs(当前状态){ |
代码实现:
1 | #include<iostream> |
hexo基本用法
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment