#include <bits/stdc++.h>
using namespace std;
void solve(){
int n;
cin >> n;
vector<int> A(n);
for(int i=0 ; i<n ; i++){
cin >> A[i];
}
int Xor = 0;
for(int i=0 ; i<n ; i++){
for(int j=i ; j<n ; j++){
Xor ^= (A[i] + A[j]);
}
}
cout << Xor;
}
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
solve();
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1675 ms |
8816 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1675 ms |
8816 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
340 KB |
Output is correct |
3 |
Execution timed out |
1673 ms |
1620 KB |
Time limit exceeded |
4 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
5 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
340 KB |
Output is correct |
3 |
Execution timed out |
1675 ms |
8816 KB |
Time limit exceeded |
4 |
Halted |
0 ms |
0 KB |
- |