Submission #498751

# Submission time Handle Problem Language Result Execution time Memory
498751 2021-12-26T09:52:29 Z ahmedfouadnew XOR Sum (info1cup17_xorsum) C++17
0 / 100
242 ms 4784 KB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
int a[5005];
signed main()
{

    int n;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        int x;
        cin>>x;
        a[x]++;
    }
    int ans=0;
    for(int i=0;i<=4000;i++)
    {
        for(int j=0;j<=4000;j++)
        {
            if((a[i]*a[j])%2==0) continue;
            ans^=(i+j);
        }
    }
    cout<<ans<<endl;
}
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 242 ms 4784 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 242 ms 4784 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 332 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -