#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ int n, dis = 1; vector<int> result; vector<int> a; cin >> n; for (int i = 0; i < n; i++){ int temp; cin >> temp; a.push_back(temp); } for (int m = 0; ...