//本题可以理解为求一堆数字中最少有多少个上升子序列。用map容器来做
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <limits.h>
#include <math.h>
#include <string.h>
#include <string>
#include <algorithm>
#include <iostream>
#include <stack>
#include <queue>
#include <set>
#include <deque>
#include <map>
#include <vector>
using namespace std;
int main(){
int cas;
while(~scanf("%d",&cas)){
map<int,int>mp;
int max = 0,x;
while(cas--){
scanf("%d",&x);
mp[x]++;
if(mp[x]>max){
max = mp[x];
}
}
printf("%d\n",max);
}
return 0;
}
原题 http://acm.hdu.edu.cn/showproblem.php?pid=1800