0
已解决
曹志
资深守护
资深守护
各位dalao帮忙看一看哪里错了,导致RE,谢谢!
#include<cstdio>
using namespace std;
long long a[200000],n,k,maxn=-1,minn=1e9;
int main(){
scanf("%lld",&n);
for(int i=0;i<n;++i)
{
scanf("%lld",&k);
a[k]++;
if(maxn<=k) maxn=k;
if(minn>=k) minn=k;
}
for(int i=minn;i<=maxn;++i)
if(a[i])
printf("%lldd %lld\n",i,a[i]);
return 0;
}