标签:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3579 Accepted Submission(s): 2386
1 #include <iostream> 2 using namespace std; 3 4 int main(){ 5 int n, num; 6 while(cin >> n && n != 0){ 7 int ans = 0; 8 for(int i = 0; i < n; i++){ 9 cin >> num; 10 ans = ans ^ num; 11 } 12 cout << ans << endl; 13 } 14 return 0; 15 }
标签:
原文地址:http://www.cnblogs.com/qinduanyinghua/p/5560600.html