猴子捞月排序算法 (随机排序)

RT大佬教的排序算法 平均复杂度O(n!) ; n=13 基本已经慢到不行了 ,n再大估计几万年才能出来; 核心代码:do { … } while(next_permutation(k,k+n));ios #include <bits/stdc++.h> #define ull unsigned long long #define ll long long using namespace st
相关文章
相关标签/搜索