#include #include #include #include #include #include #include int main(){ int n, max = 0, count = 0; scanf("%d",&n); int *height = malloc(sizeof(int) * n); for(int height_i = 0; height_i < n; height_i++){ scanf("%d",&height[height_i]); if(height[height_i] > max){ max = height[height_i]; count = 1; } else if(height[height_i] == max){ count++; } } printf("%d", count); return 0; }