组合提交代码,仅支持C++
#include <iostream>
using namespace std;
void SplitSort(int * A, int n) { //正负数分割排序
/**************begin************/
/**************end************/
}
void PrintA(int * A, int n) { //依次输出数组中的数据
for (int i = 0; i < n; i++) {
cout << A[i];
if (i != n - 1) cout << " ";
else cout << endl;
}
}
int main() {
int n;
while (cin >> n) {
if (n == 0) break;
int * A = new int[n];
for (int i = 0; i < n; i++) cin >> A[i];
SplitSort(A, n);
PrintA(A, n);
}
return 0;
}