10514 | 2024-04-04 12:58:19 | RRoli | Xorzótábla | cpp17 | Time limit exceeded 14/100 | 2.099s | 5596 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 2048 KiB | ||||
2 | Time limit exceeded | 2.099s | 2700 KiB | ||||
subtask2 | 14/14 | ||||||
3 | Accepted | 3ms | 2396 KiB | ||||
4 | Accepted | 3ms | 2668 KiB | ||||
5 | Accepted | 3ms | 2620 KiB | ||||
6 | Accepted | 3ms | 2872 KiB | ||||
7 | Accepted | 3ms | 2968 KiB | ||||
8 | Accepted | 3ms | 3028 KiB | ||||
9 | Accepted | 4ms | 3048 KiB | ||||
subtask3 | 0/14 | ||||||
10 | Accepted | 3ms | 3032 KiB | ||||
11 | Time limit exceeded | 2.099s | 3868 KiB | ||||
12 | Time limit exceeded | 2.042s | 3884 KiB | ||||
13 | Time limit exceeded | 2.072s | 4116 KiB | ||||
14 | Time limit exceeded | 2.055s | 4300 KiB | ||||
subtask4 | 0/14 | ||||||
15 | Time limit exceeded | 2.065s | 3876 KiB | ||||
16 | Time limit exceeded | 2.062s | 4268 KiB | ||||
17 | Time limit exceeded | 2.072s | 4196 KiB | ||||
18 | Time limit exceeded | 2.072s | 4500 KiB | ||||
19 | Time limit exceeded | 2.049s | 4492 KiB | ||||
subtask5 | 0/21 | ||||||
20 | Accepted | 324ms | 4392 KiB | ||||
21 | Time limit exceeded | 2.052s | 3920 KiB | ||||
22 | Time limit exceeded | 2.072s | 4136 KiB | ||||
23 | Time limit exceeded | 2.065s | 4488 KiB | ||||
24 | Time limit exceeded | 2.052s | 4492 KiB | ||||
25 | Time limit exceeded | 2.052s | 4576 KiB | ||||
subtask6 | 0/37 | ||||||
26 | Accepted | 83ms | 4080 KiB | ||||
27 | Accepted | 1.621s | 5596 KiB | ||||
28 | Time limit exceeded | 2.053s | 4108 KiB | ||||
29 | Time limit exceeded | 2.069s | 4180 KiB | ||||
30 | Time limit exceeded | 2.086s | 4884 KiB | ||||
31 | Time limit exceeded | 2.023s | 5004 KiB | ||||
32 | Time limit exceeded | 2.059s | 4924 KiB | ||||
33 | Time limit exceeded | 2.065s | 4988 KiB | ||||
34 | Time limit exceeded | 2.053s | 4924 KiB |