# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
852019 | 2023-09-21T06:31:44 Z | AtabayRajabli | XOR Sum (info1cup17_xorsum) | C++17 | 164 ms | 6900 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]; orr |= (a[i] << 1); } cout << orr - line << endll; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 164 ms | 6900 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 164 ms | 6900 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |