49
70
23万
论坛元老
#include<bits/stdc++.h> using namespace std; int t[2001]; int main() { int x,n; cin>>n; for(int i=0;i<n;i++) { cin>>x; x+=1000; t[x]++; } for(int i=2000+1;i>=0;i--) { if(t[i]>0) { cout<<i-1000<<" "; } } }
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|DiscuzX
GMT+8, 2025-2-13 04:57 , Processed in 0.050237 second(s), 29 queries .
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.. 技术支持 by 巅峰设计