7 条题解

  • -2
    @ 2024-5-2 20:13:34
    #include<iostream>
    #include<iomanip>
    #include<cstdio>
    #include<cstring>
    #include<cmath>
    #include<algorithm>
    #include<string>
    using namespace std;
    const int N=1e5+10;
    const int Inf=0x3f3f3f3f;
    int n ,x,ans = 0;
    int main(){
    	while(cin>>n){
    		if(n==0) return 0;
    		for(int i = 0,x ; i < n ; i++){
    			cin >> x;
    			ans ^= x;
    		}
    		cout << ans << endl;
    		ans=0;
    	}
    	return 0;
    }
    
    

    信息

    ID
    1222
    时间
    1000ms
    内存
    32MiB
    难度
    5
    标签
    递交数
    464
    已通过
    183
    上传者