#include <algorithm>
class Solution {
public:
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     *
     * 
     * @param num int整型vector 
     * @return int整型vector<vector<>>
     */
    vector<vector<int> > permuteUnique(vector<int>& num) 
    {
        vector <int> a=num;
        sort(num.begin(),num.end());
        vector <vector <int>> ans;
        ans.push_back(num);
        while(next_permutation(num.begin(), num.end()))
        {
            ans.push_back(num);
        }
        return ans;
    }
};