1 条题解

  • 0
    @ 2024-4-23 20:13:18
    #include<bits/stdc++.h>
    #define ll long long
    using namespace std;
    int main(){
    	ios::sync_with_stdio(0);
    	cin.tie(0);
    	cout.tie(0);
    	ll a,b[20005],ans=0,maxx=-1,s[5005];
    	cin>>a;
    	for(ll i=1;i<=a;i++){
    		cin>>b[i];
    	}
    	for(ll i=1;i<=a;i++){
    		if(s[b[i]]==0){
    			s[b[i]]++;
    			cout<<b[i]<<" ";
    		}
    	}
    }
    
    • 1

    信息

    ID
    267
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    2
    已通过
    1
    上传者