Submission #649465

# Submission time Handle Problem Language Result Execution time Memory
649465 2022-10-10T09:02:48 Z DangerNoodle7591 XOR Sum (info1cup17_xorsum) C++17
7 / 100
1600 ms 4180 KB
#include <iostream>
using namespace std;
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);cout.tie(NULL);
	int n;cin>>n;
	int arr[n];
	int x=0;
	for(int i=0;i<n;i++){
		cin>>arr[i];
		x=x^(arr[i]*2);
	}
	for(int i=0;i<n;i++){
		for(int j=i+1;j<n;j++){
			x=x^(arr[i]+arr[j]);
		}
	}
	cout<<x<<"\n";
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 212 KB Output is correct
2 Correct 6 ms 288 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1691 ms 4180 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1691 ms 4180 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 5 ms 212 KB Output is correct
2 Correct 6 ms 288 KB Output is correct
3 Execution timed out 1693 ms 596 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 5 ms 212 KB Output is correct
2 Correct 6 ms 288 KB Output is correct
3 Execution timed out 1691 ms 4180 KB Time limit exceeded
4 Halted 0 ms 0 KB -