#include #include #include #include #include #include #include int DACmax(int *a, int i, int j ); int main(){ int n; scanf("%d",&n); int *types = malloc(sizeof(int) * n); for(int types_i = 1; types_i <= n; types_i++){ scanf("%d",&types[types_i]); } int freq[5] = {0,0,0,0,0}; int y, j, k, maxi, i; for(i=1; i<=n; i++){ freq[types[i]-1] += 1; } maxi = DACmax(freq, 0, n-1); for(k=0;kc) {maxi = b;} else maxi = c; } return maxi; }