for (int i = 1; i <= n; ++i) { for (int j = 1; j < i; ++j) { if (a[i] >= a[j]) { // 写成 > 的小朋友们你们好啊 ... } } }