洛谷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
相关文章
相关标签/搜索