#include <iostream> #include <algorithm> #include <functional> using namespace std; int main() { int num; vector<int> arr; cin>>num; arr.resize(num); for(size_t i = 0; i<num;i++) { cin>>arr[i]; } sort(arr.begin(),arr.end(),less...