# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
852015 | 2023-09-21T06:18:29 Z | AtabayRajabli | XOR Sum (info1cup17_xorsum) | C++17 | 1600 ms | 8804 KB |
#include <bits/stdc++.h> #define endll '\n' using namespace std; int main() { int n; cin >> n; vector<int> a(n, 0); for(int i = 0; i<n; i++) { cin >> a[i]; } int sum = 0, line = 0, orr = 0; for(int i = 0; i<n; i++) { line ^= a[i]; for(int j = i; j<n; j++) { sum ^= (a[i] + a[j]); } } cout << sum << endll; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 348 KB | Output is correct |
2 | Correct | 5 ms | 348 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1610 ms | 8804 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1610 ms | 8804 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 348 KB | Output is correct |
2 | Correct | 5 ms | 348 KB | Output is correct |
3 | Execution timed out | 1606 ms | 1624 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 348 KB | Output is correct |
2 | Correct | 5 ms | 348 KB | Output is correct |
3 | Execution timed out | 1610 ms | 8804 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |