Submission #649434

# Submission time Handle Problem Language Result Execution time Memory
649434 2022-10-10T08:02:28 Z AZAxx XOR Sum (info1cup17_xorsum) C++14
7 / 100
1600 ms 8732 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back

int main(){

	ll n; cin >> n;
	ll a[n];
	for(ll &x : a) cin >> x;

	ll ans=0;
	for(int i=0; i<n; i++){
		for(int j=i; j<n; j++) ans= (ans^(a[i]+a[j]));
	}
	cout << ans << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 8 ms 340 KB Output is correct
2 Correct 12 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1681 ms 8732 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1681 ms 8732 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 8 ms 340 KB Output is correct
2 Correct 12 ms 340 KB Output is correct
3 Execution timed out 1682 ms 1736 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 8 ms 340 KB Output is correct
2 Correct 12 ms 340 KB Output is correct
3 Execution timed out 1681 ms 8732 KB Time limit exceeded
4 Halted 0 ms 0 KB -