洛谷P1088火星人題解--zhengjun

題面傳送門html 思路 S T L STL STL真好,有兩個函數:c++ next_permutation() prev_permutation() 分別是求出數組的下一個排列,和上一個排列。web 能夠就返回 1 1 1,若是沒法操做了,返回 0 0 0數組 代碼 #include<bits/stdc++.h> using namespace std; int n,m; int a[1000
相關文章
相關標籤/搜索