降低难度
查看原帖
降低难度
816821
Liyunze123楼主2023/12/2 09:32

这道题学过位运算的人都会,就是输入量大一点,没什么难度。建议降橙(普及−-)。

而且我的AC代码只有十行。

#include<bits/stdc++.h>
using namespace std;
int n,a,s;
int main(){
	scanf("%d",&n);
	for(int w=1;w<=n;w++)
		scanf("%d",&a),s^=a;
	printf("%d",s);
    return 0;
}
2023/12/2 09:32
加载中...