# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
926797 | 2024-02-13T18:15:26 Z | vjudge1 | XOR Sum (info1cup17_xorsum) | C++17 | 1600 ms | 12740 KB |
#include <bits/stdc++.h> using namespace std; #define int long long void xakir() { int n; cin>>n; vector<int>v(n+1); for(int i=1;i<=n;i++) { cin>>v[i]; } int res=0; for(int i=1;i<=n;i++) { for(int j=i;j<=n;j++) { res^=(v[i]+v[j]); } } cout<<res; } signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); cout.setf( ios::fixed); cout.precision(4); system("color 0A"); int t=1; //cin>>t; while(t--) { xakir(); } /** ░█████╗░░░░░░░░░░░░░░░ ██╔══██╗░░██╗░░░░██╗░░ ██║░░╚═╝██████╗██████╗ ██║░░██╗╚═██╔═╝╚═██╔═╝ ╚█████╔╝░░╚═╝░░░░╚═╝░░ ░╚════╝░░░░░░░░░░░░░░░ **/ }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 596 KB | Output is correct |
2 | Correct | 5 ms | 344 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1612 ms | 12740 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1612 ms | 12740 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 596 KB | Output is correct |
2 | Correct | 5 ms | 344 KB | Output is correct |
3 | Execution timed out | 1629 ms | 2132 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 5 ms | 596 KB | Output is correct |
2 | Correct | 5 ms | 344 KB | Output is correct |
3 | Execution timed out | 1612 ms | 12740 KB | Time limit exceeded |
4 | Halted | 0 ms | 0 KB | - |