#include int main() { int n; scanf("%d", &n); int arr[n], max=0, min=10000000, i; for (int i=0; imax) max=arr[i]; if (arr[i]