#include <iostream> #include <cstdio> #include <algorithm> using namespace std; const int MaxSize = 100 + 10; int arr[MaxSize]; int main(){ int n = 0; while(scanf("%d",&n)!=EOF){ for(int i = 0 ; i < n ; i++){ scanf("%d",&arr[i]); ...