Submission #587984

# Submission time Handle Problem Language Result Execution time Memory
587984 2022-07-02T15:34:53 Z Jean7 XOR Sum (info1cup17_xorsum) C++14
7 / 100
1600 ms 8020 KB
#include <bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define int long long

using namespace std ;

signed main ()
{
    fastio ;
    int n , ans = 0 ;
    cin >> n ;
    int a[n] ;
    for ( auto &it : a ) cin >> it ;
    for ( int i = 0 ; i < n ; i++ )
        for ( int j = i ; j < n ; j++ )
            ans ^= ( a[i] + a[j] ) ;
    cout << ans ;
    return 0 ;
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 340 KB Output is correct
2 Correct 7 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 1665 ms 8020 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 1665 ms 8020 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 340 KB Output is correct
2 Correct 7 ms 340 KB Output is correct
3 Execution timed out 1656 ms 1992 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 340 KB Output is correct
2 Correct 7 ms 340 KB Output is correct
3 Execution timed out 1665 ms 8020 KB Time limit exceeded
4 Halted 0 ms 0 KB -