Submission #498881

# Submission time Handle Problem Language Result Execution time Memory
498881 2021-12-26T14:04:51 Z ahmedfouadnew XOR Sum (info1cup17_xorsum) C++17
7 / 100
1600 ms 656 KB
//#pragma GCC optimize ("O3")
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
int n;
int a[100005];
signed main()
{
    cin>>n;
    for(int i=0;i<n;i++)
        cin>>a[i];
    int ans=0;
    for(int i=0;i<n;i++)
    {
        for(int j=i;j<n;j++)
        {
            ans^=(a[i]+a[j]);
        }
    }
    cout<<ans<<endl;
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 308 KB Output is correct
2 Correct 9 ms 308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 656 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 26 ms 656 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 308 KB Output is correct
2 Correct 9 ms 308 KB Output is correct
3 Execution timed out 1661 ms 596 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 308 KB Output is correct
2 Correct 9 ms 308 KB Output is correct
3 Incorrect 26 ms 656 KB Output isn't correct
4 Halted 0 ms 0 KB -