Submission #521801

# Submission time Handle Problem Language Result Execution time Memory
521801 2022-02-03T07:48:31 Z maks007 XOR Sum (info1cup17_xorsum) C++14
7 / 100
1600 ms 8796 KB
#include <bits/stdc++.h>

using namespace std;

int main(void) {
	int n;
	cin>> n;
	vector <int> a(n);
	for(int i = 0; i < n; i ++ ) {
		cin >> a[i];
	}
	int ans = 0;
	for(int i = 0; i < n; i ++) {
		for(int j = i; j < n; j ++) {
			ans ^= (a[i] + a[j]);
		}
	}
	cout << ans;
	return false;
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 332 KB Output is correct
2 Correct 6 ms 332 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1662 ms 8796 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1662 ms 8796 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 332 KB Output is correct
3 Execution timed out 1657 ms 1732 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 332 KB Output is correct
3 Execution timed out 1662 ms 8796 KB Time limit exceeded
4 Halted 0 ms 0 KB -