prev_permutation(a+1,a+n+1)

prev_permutation(a+1,a+n+1)
产生上一个排列

原文地址:https://www.cnblogs.com/war1111/p/7786444.html