#include <bits/stdc++.h>
using namespace std;
int main(){
int n;cin>>n;
long long int arr[n];
for(int i=0;i<n;i++){
cin>>arr[i];
}
long long int x=0;
for(int i=0;i<n;i++){
for(int j=i;j<n;j++){
x=x^(arr[i]+arr[j]);
}
}
cout<<x<<"\n";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
8 ms |
360 KB |
Output is correct |
2 |
Correct |
8 ms |
312 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
1682 ms |
12692 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
1682 ms |
12692 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
8 ms |
360 KB |
Output is correct |
2 |
Correct |
8 ms |
312 KB |
Output is correct |
3 |
Execution timed out |
1671 ms |
2024 KB |
Time limit exceeded |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
8 ms |
360 KB |
Output is correct |
2 |
Correct |
8 ms |
312 KB |
Output is correct |
3 |
Execution timed out |
1682 ms |
12692 KB |
Time limit exceeded |
4 |
Halted |
0 ms |
0 KB |
- |