HDU-6351 G-Beautiful Now

题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6351 题目分析:           任意交换两个数至多k次求得到的最大的数和最小的数,使用dfs搜索,求最大最小代码基本一样 #include<iostream> #include<string> #include<algorithm> using namespace std; string ma
相关文章
相关标签/搜索