Submission #97638

# Submission time Handle Problem Language Result Execution time Memory
97638 2019-02-17T15:26:04 Z KLPP XOR Sum (info1cup17_xorsum) C++14
7 / 100
1600 ms 12800 KB
#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;
}
# Verdict Execution time Memory Grader output
1 Correct 11 ms 384 KB Output is correct
2 Correct 11 ms 384 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1692 ms 12800 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1692 ms 12800 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -