10548 | 2024-04-05 08:04:31 | RRoli | Xorzótábla | cpp17 | Accepted 100/100 | 1.781s | 7920 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 2176 KiB | ||||
2 | Accepted | 1.101s | 5016 KiB | ||||
subtask2 | 14/14 | ||||||
3 | Accepted | 3ms | 2544 KiB | ||||
4 | Accepted | 3ms | 2432 KiB | ||||
5 | Accepted | 3ms | 2432 KiB | ||||
6 | Accepted | 3ms | 2684 KiB | ||||
7 | Accepted | 3ms | 2772 KiB | ||||
8 | Accepted | 3ms | 2772 KiB | ||||
9 | Accepted | 3ms | 2984 KiB | ||||
subtask3 | 14/14 | ||||||
10 | Accepted | 3ms | 2952 KiB | ||||
11 | Accepted | 1.592s | 6308 KiB | ||||
12 | Accepted | 1.399s | 5980 KiB | ||||
13 | Accepted | 1.557s | 6256 KiB | ||||
14 | Accepted | 1.585s | 6572 KiB | ||||
subtask4 | 14/14 | ||||||
15 | Accepted | 902ms | 5892 KiB | ||||
16 | Accepted | 1.243s | 6572 KiB | ||||
17 | Accepted | 1.131s | 6320 KiB | ||||
18 | Accepted | 1.6s | 6808 KiB | ||||
19 | Accepted | 1.634s | 7008 KiB | ||||
subtask5 | 21/21 | ||||||
20 | Accepted | 64ms | 4280 KiB | ||||
21 | Accepted | 569ms | 5912 KiB | ||||
22 | Accepted | 843ms | 6300 KiB | ||||
23 | Accepted | 1.491s | 7112 KiB | ||||
24 | Accepted | 1.715s | 7292 KiB | ||||
25 | Accepted | 1.781s | 7300 KiB | ||||
subtask6 | 37/37 | ||||||
26 | Accepted | 19ms | 4424 KiB | ||||
27 | Accepted | 347ms | 6288 KiB | ||||
28 | Accepted | 764ms | 6756 KiB | ||||
29 | Accepted | 832ms | 7084 KiB | ||||
30 | Accepted | 1.529s | 7920 KiB | ||||
31 | Accepted | 1.699s | 7876 KiB | ||||
32 | Accepted | 1.549s | 7876 KiB | ||||
33 | Accepted | 1.667s | 7788 KiB | ||||
34 | Accepted | 1.605s | 7780 KiB |