#include <iostream>
using namespace std;int main()
{int sub = 0;int a[5] = {5,4,1,3,2};for (int i = 0; i < 5; i++){for (int j = i + 1; j <5; j++){if (a[i] > a[j]){sub += 1;}}}if (sub % 2 == 0)cout << "此排列是偶排列" << endl;else{cout << "此排列是奇排列" << endl;}system("pause");return 0;
}