55422023-07-18 21:16:20AndrosXorzótáblacpp17Time limit exceeded 14/1002.099s38040 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;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1884 KiB
2Time limit exceeded2.099s3584 KiB
subtask214/14
3Accepted3ms3956 KiB
4Accepted3ms4324 KiB
5Accepted3ms4304 KiB
6Accepted3ms4320 KiB
7Accepted4ms4568 KiB
8Accepted4ms4680 KiB
9Accepted4ms5040 KiB
subtask30/14
10Accepted3ms5148 KiB
11Time limit exceeded2.078s6624 KiB
12Time limit exceeded2.042s8268 KiB
13Time limit exceeded2.079s10352 KiB
14Time limit exceeded2.082s12308 KiB
subtask40/14
15Time limit exceeded2.062s13192 KiB
16Time limit exceeded2.052s15016 KiB
17Time limit exceeded2.065s16524 KiB
18Time limit exceeded2.069s18884 KiB
19Time limit exceeded2.099s20436 KiB
subtask50/21
20Accepted314ms21008 KiB
21Time limit exceeded2.065s20856 KiB
22Time limit exceeded2.069s21600 KiB
23Time limit exceeded2.069s22360 KiB
24Time limit exceeded2.069s23080 KiB
25Time limit exceeded2.056s23748 KiB
subtask60/37
26Accepted83ms24088 KiB
27Accepted1.577s25928 KiB
28Time limit exceeded2.078s26312 KiB
29Time limit exceeded2.061s27948 KiB
30Time limit exceeded2.052s30420 KiB
31Time limit exceeded2.058s32340 KiB
32Time limit exceeded2.069s34228 KiB
33Time limit exceeded2.069s36084 KiB
34Time limit exceeded2.062s38040 KiB