10502 | 2024-04-03 16:23:39 | 111 | Xorzótábla | cpp17 | Accepted 100/100 | 753ms | 15528 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1904 KiB | ||||
2 | Accepted | 545ms | 5332 KiB | ||||
subtask2 | 14/14 | ||||||
3 | Accepted | 3ms | 4100 KiB | ||||
4 | Accepted | 3ms | 4376 KiB | ||||
5 | Accepted | 3ms | 4468 KiB | ||||
6 | Accepted | 3ms | 4436 KiB | ||||
7 | Accepted | 3ms | 4620 KiB | ||||
8 | Accepted | 3ms | 4684 KiB | ||||
9 | Accepted | 3ms | 4672 KiB | ||||
subtask3 | 14/14 | ||||||
10 | Accepted | 3ms | 4948 KiB | ||||
11 | Accepted | 745ms | 7728 KiB | ||||
12 | Accepted | 611ms | 9284 KiB | ||||
13 | Accepted | 753ms | 11628 KiB | ||||
14 | Accepted | 751ms | 13456 KiB | ||||
subtask4 | 14/14 | ||||||
15 | Accepted | 379ms | 13956 KiB | ||||
16 | Accepted | 611ms | 15060 KiB | ||||
17 | Accepted | 523ms | 14944 KiB | ||||
18 | Accepted | 750ms | 15188 KiB | ||||
19 | Accepted | 753ms | 15192 KiB | ||||
subtask5 | 21/21 | ||||||
20 | Accepted | 34ms | 13876 KiB | ||||
21 | Accepted | 272ms | 14608 KiB | ||||
22 | Accepted | 405ms | 14768 KiB | ||||
23 | Accepted | 663ms | 15032 KiB | ||||
24 | Accepted | 736ms | 15068 KiB | ||||
25 | Accepted | 740ms | 15196 KiB | ||||
subtask6 | 37/37 | ||||||
26 | Accepted | 12ms | 13968 KiB | ||||
27 | Accepted | 165ms | 14624 KiB | ||||
28 | Accepted | 379ms | 14868 KiB | ||||
29 | Accepted | 412ms | 14872 KiB | ||||
30 | Accepted | 750ms | 15196 KiB | ||||
31 | Accepted | 750ms | 15272 KiB | ||||
32 | Accepted | 751ms | 15264 KiB | ||||
33 | Accepted | 750ms | 15452 KiB | ||||
34 | Accepted | 751ms | 15528 KiB |