105142024-04-04 12:58:19RRoliXorzótáblacpp17Time limit exceeded 14/1002.099s5596 KiB
#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
1Accepted3ms2048 KiB
2Time limit exceeded2.099s2700 KiB
subtask214/14
3Accepted3ms2396 KiB
4Accepted3ms2668 KiB
5Accepted3ms2620 KiB
6Accepted3ms2872 KiB
7Accepted3ms2968 KiB
8Accepted3ms3028 KiB
9Accepted4ms3048 KiB
subtask30/14
10Accepted3ms3032 KiB
11Time limit exceeded2.099s3868 KiB
12Time limit exceeded2.042s3884 KiB
13Time limit exceeded2.072s4116 KiB
14Time limit exceeded2.055s4300 KiB
subtask40/14
15Time limit exceeded2.065s3876 KiB
16Time limit exceeded2.062s4268 KiB
17Time limit exceeded2.072s4196 KiB
18Time limit exceeded2.072s4500 KiB
19Time limit exceeded2.049s4492 KiB
subtask50/21
20Accepted324ms4392 KiB
21Time limit exceeded2.052s3920 KiB
22Time limit exceeded2.072s4136 KiB
23Time limit exceeded2.065s4488 KiB
24Time limit exceeded2.052s4492 KiB
25Time limit exceeded2.052s4576 KiB
subtask60/37
26Accepted83ms4080 KiB
27Accepted1.621s5596 KiB
28Time limit exceeded2.053s4108 KiB
29Time limit exceeded2.069s4180 KiB
30Time limit exceeded2.086s4884 KiB
31Time limit exceeded2.023s5004 KiB
32Time limit exceeded2.059s4924 KiB
33Time limit exceeded2.065s4988 KiB
34Time limit exceeded2.053s4924 KiB