#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int n, tmp; int i, j; vector<int> heights; // 输入 while(cin >> n){ for(i = 0; i < n; i++){ cin >> tmp; heights.push_...