Submission #685300

#TimeUsernameProblemLanguageResultExecution timeMemory
685300AiperiiiXOR Sum (info1cup17_xorsum)C++14
7 / 100
1676 ms8808 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...