#include <iostream> using namespace std; int main() { int n; while(cin >> n && n != 0) { int ans = 0, tmp; while(n--) { cin >> tmp; ans ^= tmp; } cout << ans << endl; } return 0; }
sicily 1200
最新推荐文章于 2019-06-26 23:26:58 发布
#include <iostream> using namespace std; int main() { int n; while(cin >> n && n != 0) { int ans = 0, tmp; while(n--) { cin >> tmp; ans ^= tmp; } cout << ans << endl; } return 0; }