W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
#include
#include
#include
using namespace std; int main() { vector
numbers = {1, 7, 3, 5, 9, 2}; vector
other = {9, 7, 5, 3, 2, 1}; if (is_permutation(numbers.begin(), numbers.end(), other.begin())) { cout << "找到排列组合"; } else { cout << "未找到排列组合"; } return 0; }