Submission #676382

# Submission time Handle Problem Language Result Execution time Memory
676382 2022-12-30T14:58:33 Z _________ XOR Sum (info1cup17_xorsum) C++17
7 / 100
1600 ms 8824 KB
#include<bits/stdc++.h>
using namespace std;
int main (){
int x; cin>>x; int s=0; vector<int>q(0,x);
for(int o=0;o<x;o++){ int z; cin>>z; q.push_back(z); } for(int e=0;e<x;e++){
    for(int o=e;o<x;o++){
        s=s xor (q[e]+q[o]);
    }
} cout<<s;

}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 368 KB Output is correct
2 Correct 6 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1668 ms 8824 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1668 ms 8824 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 368 KB Output is correct
2 Correct 6 ms 340 KB Output is correct
3 Execution timed out 1684 ms 1708 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 368 KB Output is correct
2 Correct 6 ms 340 KB Output is correct
3 Execution timed out 1668 ms 8824 KB Time limit exceeded
4 Halted 0 ms 0 KB -