P1088 火星人

題意是求第(m+1)個排列 一共有n個數; #include<bits/stdc++.h> using namespace std; int a[10005],n,m; int main() { scanf("%d %d",&n,&m); for(int i=0;i<n;i++) scanf("%d",&a[i]); while(m--) next_permutation(a,a+n
相關文章
相關標籤/搜索