//这困难个啥劲。。。 #include <iostream> #include <cstdio> #include <algorithm> using namespace std; int main(){ int n; int arr[1000]; while (scanf("%d",&n) != EOF){ for (int i = 0; i < n; ++i) { scanf("%d",&arr[i]); } sort(arr,arr + n); ...