#include<bits/stdc++.h>
using namespace std;
typedef long long int lld;
int main(){
int n;
cin>>n;
lld arr[n];
for(int i=0;i<n;i++)cin>>arr[i];
lld ans=0;
for(int i=0;i<n;i++){
for(int j=i;j<n;j++)ans^=(arr[i]+arr[j]);
}
cout<<ans<<endl;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
384 KB |
Output is correct |
2 |
Correct |
11 ms |
384 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1692 ms |
12800 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1692 ms |
12800 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
384 KB |
Output is correct |
2 |
Correct |
11 ms |
384 KB |
Output is correct |
3 |
Execution timed out |
1632 ms |
2012 KB |
Time limit exceeded |
4 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
384 KB |
Output is correct |
2 |
Correct |
11 ms |
384 KB |
Output is correct |
3 |
Execution timed out |
1692 ms |
12800 KB |
Time limit exceeded |
4 |
Halted |
0 ms |
0 KB |
- |