105022024-04-03 16:23:39111Xorzótáblacpp17Accepted 100/100753ms15528 KiB
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx,avx2,fma")

#include<bits/stdc++.h>
using namespace std;

alignas(64)int N,M,v[100000],w[100000];

int main(){
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cin>>N>>M;
	for(int i=0;i<N;i++){
		cin>>v[i];
	}
	for(int i=0;i<M;i++){
		cin>>w[i];
	}
	int ans=0;
	for(int i=0;i<N;i++){
		for(int j=0;j<M;j++){
			ans^=v[i]+w[j];
		}
	}
	cout<<ans<<'\n';
	return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1904 KiB
2Accepted545ms5332 KiB
subtask214/14
3Accepted3ms4100 KiB
4Accepted3ms4376 KiB
5Accepted3ms4468 KiB
6Accepted3ms4436 KiB
7Accepted3ms4620 KiB
8Accepted3ms4684 KiB
9Accepted3ms4672 KiB
subtask314/14
10Accepted3ms4948 KiB
11Accepted745ms7728 KiB
12Accepted611ms9284 KiB
13Accepted753ms11628 KiB
14Accepted751ms13456 KiB
subtask414/14
15Accepted379ms13956 KiB
16Accepted611ms15060 KiB
17Accepted523ms14944 KiB
18Accepted750ms15188 KiB
19Accepted753ms15192 KiB
subtask521/21
20Accepted34ms13876 KiB
21Accepted272ms14608 KiB
22Accepted405ms14768 KiB
23Accepted663ms15032 KiB
24Accepted736ms15068 KiB
25Accepted740ms15196 KiB
subtask637/37
26Accepted12ms13968 KiB
27Accepted165ms14624 KiB
28Accepted379ms14868 KiB
29Accepted412ms14872 KiB
30Accepted750ms15196 KiB
31Accepted750ms15272 KiB
32Accepted751ms15264 KiB
33Accepted750ms15452 KiB
34Accepted751ms15528 KiB