5542 | 2023-07-18 21:16:20 | Andros | Xorzótábla | cpp17 | Time limit exceeded 14/100 | 2.099s | 38040 KiB |
#include <iostream>
#define maxN 100001
using namespace std;
int a[maxN];
int b[maxN];
int main()
{
int n, m;
cin >> n >> m;
for (int i = 0; i < n; i++)
{
cin >> a[i];
}
for (int i = 0; i < m; i++)
{
cin >> b[i];
}
int base=0;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
base ^= a[i] + b[j];
}
}
cout << base;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1884 KiB | ||||
2 | Time limit exceeded | 2.099s | 3584 KiB | ||||
subtask2 | 14/14 | ||||||
3 | Accepted | 3ms | 3956 KiB | ||||
4 | Accepted | 3ms | 4324 KiB | ||||
5 | Accepted | 3ms | 4304 KiB | ||||
6 | Accepted | 3ms | 4320 KiB | ||||
7 | Accepted | 4ms | 4568 KiB | ||||
8 | Accepted | 4ms | 4680 KiB | ||||
9 | Accepted | 4ms | 5040 KiB | ||||
subtask3 | 0/14 | ||||||
10 | Accepted | 3ms | 5148 KiB | ||||
11 | Time limit exceeded | 2.078s | 6624 KiB | ||||
12 | Time limit exceeded | 2.042s | 8268 KiB | ||||
13 | Time limit exceeded | 2.079s | 10352 KiB | ||||
14 | Time limit exceeded | 2.082s | 12308 KiB | ||||
subtask4 | 0/14 | ||||||
15 | Time limit exceeded | 2.062s | 13192 KiB | ||||
16 | Time limit exceeded | 2.052s | 15016 KiB | ||||
17 | Time limit exceeded | 2.065s | 16524 KiB | ||||
18 | Time limit exceeded | 2.069s | 18884 KiB | ||||
19 | Time limit exceeded | 2.099s | 20436 KiB | ||||
subtask5 | 0/21 | ||||||
20 | Accepted | 314ms | 21008 KiB | ||||
21 | Time limit exceeded | 2.065s | 20856 KiB | ||||
22 | Time limit exceeded | 2.069s | 21600 KiB | ||||
23 | Time limit exceeded | 2.069s | 22360 KiB | ||||
24 | Time limit exceeded | 2.069s | 23080 KiB | ||||
25 | Time limit exceeded | 2.056s | 23748 KiB | ||||
subtask6 | 0/37 | ||||||
26 | Accepted | 83ms | 24088 KiB | ||||
27 | Accepted | 1.577s | 25928 KiB | ||||
28 | Time limit exceeded | 2.078s | 26312 KiB | ||||
29 | Time limit exceeded | 2.061s | 27948 KiB | ||||
30 | Time limit exceeded | 2.052s | 30420 KiB | ||||
31 | Time limit exceeded | 2.058s | 32340 KiB | ||||
32 | Time limit exceeded | 2.069s | 34228 KiB | ||||
33 | Time limit exceeded | 2.069s | 36084 KiB | ||||
34 | Time limit exceeded | 2.062s | 38040 KiB |