文章
6
粉丝
105
获赞
2
访问
3.7k
#include<iostream>
#include<map>
#include<algorithm>
using namespace std;
int main() {
int n, m;
while (cin >> n) {
map<int, int>M;
int a[2000];
for (int i = 0; i <n; i++) {
cin >> a[i];
}
sort(a, a + n);
for (int i = 0; i < n; i++) {
int x = a[i];
M[x]++;
}
cin >> m;
int k = 0;
for (int j = 0; j < M.size(); j++) ...
登录后发布评论
暂无评论,来抢沙发