Why?!
#include<bits/stdc++.h>
using namespace std;
long long s[1005]={1},n,m,t;
bool no_out=true;
int main(){
cin>>n>>m;
for(int i=1;i<=m;i++){
cin>>t;
s[t]--;
}
for(int i=0;i<n;i++){
if(s[i]==1){
cout<<i<<" ";
no_out=false;
}
}
if(no_out)cout<<n;
return 0;
}
玄关(所有悬关的全用小号关注(tongtong2012——st))