洛谷 P2525 Uim的情人節禮物·其之壱

思路:利用STL函數c++ #include<bits/stdc++.h> using namespace std; const int MAXSIZE = 10; int main() { int n; int a[MAXSIZE]; cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; if (prev_permutation(a,
相關文章
相關標籤/搜索