异或和解法瀚高祖2025-12-31 16:20:31发布于:浙江4阅读0回复0点赞O(n) #include<bits/stdc++.h> using namespace std; int n,a,xors; int main(){ cin>>n; while(n--){ cin>>a; xors^=a; } cout<<xors; return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个