#include <stdio.h> #include <string.h> int main(){ int n; scanf("%d", &n); int tall[n]; memset(tall, 0, sizeof(tall)); for(int i = 0; i < n; i++){ scanf("%d", tall + i); } int inc[n], dec[n], sum[n]; memset(inc, 0, sizeof(inc)); memset(...