为啥错了?

ykj142 2024-07-21 12:31:02 11

#include <bits/stdc++.h> using namespace std;

int main() { freopen("A.in","r",stdin); freopen("A.out","w",stdout); int n,a[100010]; cin>>n; for(int i=1;i<=n;i++) cin>>a[i]; sort(a+1,a+1+n); int k=unique(a+1,a+1+n)-(a+1); cout<<k; for(int i=1;i<=k;i++) cout<<a[i]; return 0; }

{{ vote && vote.total.up }}

共 1 条回复

Brilliance 紫罗兰

能不能加个 latex