| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1308441 | mxhrvs | XOR Sum (info1cup17_xorsum) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
using namespace std;
int amin(){
int n;
cin >> n;
int a[n+1];
vector<int> v;
for(int i = 1; i <= n; i ++){
cin >> a[i];
}
for(int i = 1; i <= n; i ++){
for(int j = i ; j <= n; j ++){
v.push_back(a[i] + a[j]);
}
}
int ans = 0;
for(auto i : v) ans ^= i;
cout << ans << "\n";
}
