105482024-04-05 08:04:31RRoliXorzótáblacpp17Accepted 100/1001.781s7920 KiB
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx,avx2,fma")

#include <bits/stdc++.h>
using namespace std;

long long n, m, a[100001], b[100001];

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);

    cin>> n >> m;

    for(int i = 1; i <= n; i++) cin>> a[i];
    for(int i = 1; i <= m; i++) cin>> b[i];

    long long v = 0;
    for(int i = 1; i <= n; i++)
        for(int j = 1; j <= m; j++)
            v = v^(a[i]+b[j]);
    cout << v;


    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms2176 KiB
2Accepted1.101s5016 KiB
subtask214/14
3Accepted3ms2544 KiB
4Accepted3ms2432 KiB
5Accepted3ms2432 KiB
6Accepted3ms2684 KiB
7Accepted3ms2772 KiB
8Accepted3ms2772 KiB
9Accepted3ms2984 KiB
subtask314/14
10Accepted3ms2952 KiB
11Accepted1.592s6308 KiB
12Accepted1.399s5980 KiB
13Accepted1.557s6256 KiB
14Accepted1.585s6572 KiB
subtask414/14
15Accepted902ms5892 KiB
16Accepted1.243s6572 KiB
17Accepted1.131s6320 KiB
18Accepted1.6s6808 KiB
19Accepted1.634s7008 KiB
subtask521/21
20Accepted64ms4280 KiB
21Accepted569ms5912 KiB
22Accepted843ms6300 KiB
23Accepted1.491s7112 KiB
24Accepted1.715s7292 KiB
25Accepted1.781s7300 KiB
subtask637/37
26Accepted19ms4424 KiB
27Accepted347ms6288 KiB
28Accepted764ms6756 KiB
29Accepted832ms7084 KiB
30Accepted1.529s7920 KiB
31Accepted1.699s7876 KiB
32Accepted1.549s7876 KiB
33Accepted1.667s7788 KiB
34Accepted1.605s7780 KiB