摘要: 答案:416 用next_permutation()全部排列的话会超时 所以用dfs搜索,只搜索前三行就好,前三行确定之后,第四行也就确定 #include<iostream> #include<string> #include<string.h> #include<algorithm> using 阅读全文
posted @ 2020-02-12 18:45 知道了呀~ 阅读(328) 评论(0) 推荐(0) 编辑