WA声一片:悬关!
查看原帖
WA声一片:悬关!
840059
tongtong2012楼主2023/11/1 20:39

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))

2023/11/1 20:39
加载中...