#include <algorithm> using namespace std; int main() { int n; //随机数个数n int num; //每次的输入数据 int data[1000] = { 0 }; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &num); data[i] = num; //cout << data[i] << endl; ...