Submission #922617

# Submission time Handle Problem Language Result Execution time Memory
922617 2024-02-05T20:00:04 Z HaciyevAlik XOR Sum (info1cup17_xorsum) C++14
7 / 100
1600 ms 8788 KB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
    ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    int n; cin >> n;
    vector<int> a(n+1);
    for(int i=1;i<=n;++i) {
        cin >> a[i];
    }    
    int xorr=0;
    for(int i=1;i<=n;++i) {
        for(int j=i;j<=n;++j) {
            xorr^=(a[i]+a[j]);
        }
    }
    cout << xorr;
    return 0;   
}
# Verdict Execution time Memory Grader output
1 Correct 5 ms 348 KB Output is correct
2 Correct 5 ms 512 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1627 ms 8788 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1627 ms 8788 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 512 KB Output is correct
3 Execution timed out 1619 ms 1628 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 512 KB Output is correct
3 Execution timed out 1627 ms 8788 KB Time limit exceeded
4 Halted 0 ms 0 KB -