Submission #389227

# Submission time Handle Problem Language Result Execution time Memory
389227 2021-04-14T01:11:13 Z rk42745417 XOR Sum (info1cup17_xorsum) C++17
7 / 100
1600 ms 8800 KB
#include <bits/stdc++.h>
using namespace std;

#define EMT ios::sync_with_stdio(0); cin.tie(0);
using ll = int64_t;
using ull = uint64_t;
using uint = uint32_t;
using ld = long double;
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
const ll LINF = 1e18;
const double EPS = 1e-9;

signed main() {
	int n;
	cin >> n;
	vector<int> arr(n);
	for(int &a : arr)
		cin >> a;
	int ans = 0;
	for(int i = 0; i < n; i++)
		for(int j = i; j < n; j++)
			ans ^= arr[i] + arr[j];
	cout << ans << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 332 KB Output is correct
2 Correct 6 ms 336 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1692 ms 8800 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1692 ms 8800 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 332 KB Output is correct
2 Correct 6 ms 336 KB Output is correct
3 Execution timed out 1697 ms 1560 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 332 KB Output is correct
2 Correct 6 ms 336 KB Output is correct
3 Execution timed out 1692 ms 8800 KB Time limit exceeded
4 Halted 0 ms 0 KB -