Submission #722734

# Submission time Handle Problem Language Result Execution time Memory
722734 2023-04-12T18:39:15 Z AliHasanli XOR Sum (info1cup17_xorsum) C++17
0 / 100
236 ms 4872 KB
#include <iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int ans=0;
    for(int i=0;i<n;i++)
    {
        int a;
        cin>>a;
        if(i==0)ans=a;
        else ans^=a;
    }
    cout<<ans*2;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 236 ms 4872 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 236 ms 4872 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -