Submission #685300

# Submission time Handle Problem Language Result Execution time Memory
685300 2023-01-24T02:46:55 Z Aiperiii XOR Sum (info1cup17_xorsum) C++14
7 / 100
1600 ms 8808 KB
#include <bits/stdc++.h>
using namespace std;
int main(){
    int n;
    cin>>n;
    vector <int> a(n);
    for(int i=0;i<n;i++){
        cin>>a[i];
    }
    long long ans=0;
    for(int i=0;i<n;i++){
        for(int j=i;j<n;j++){
            long long x=a[i]+a[j];
            ans^=x;
        }
    }
    cout<<ans;
}
# Verdict Execution time Memory Grader output
1 Correct 7 ms 340 KB Output is correct
2 Correct 7 ms 312 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1676 ms 8808 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1676 ms 8808 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 7 ms 340 KB Output is correct
2 Correct 7 ms 312 KB Output is correct
3 Execution timed out 1669 ms 1612 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 7 ms 340 KB Output is correct
2 Correct 7 ms 312 KB Output is correct
3 Execution timed out 1676 ms 8808 KB Time limit exceeded
4 Halted 0 ms 0 KB -