94922024-02-22 11:53:06TuruTamasXorzótáblacpp17Time limit exceeded 14/1002.099s4788 KiB
#include <bits/stdc++.h>
using namespace std;

#ifdef DEBUG
ifstream in_file("C:\\verseny\\minta\\be1.txt");
#define input in_file
#define INTHENAMEOFGOD
#else
#define input cin
#define INTHENAMEOFGOD \
    ios::sync_with_stdio(0); \
    cin.tie(0); \
    cout.tie(0);
#endif
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef vector<bool> vb;
typedef pair<ll, ll> pii;

ll N, M, b, ans;
vi v;

int main() {
    INTHENAMEOFGOD
    input >> N >> M;
    v.resize(N);
    for (ll n = 0; n < N; n++) {
        input >> v[n];
    }
    for (ll m = 0; m < M; m++) {
        input >> b;
        for (ll &a : v) {
            ans ^= a + b;
        }
    }
    cout << ans << endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1896 KiB
2Time limit exceeded2.099s1848 KiB
subtask214/14
3Accepted3ms2292 KiB
4Accepted3ms2524 KiB
5Accepted3ms2612 KiB
6Accepted3ms2720 KiB
7Accepted4ms2960 KiB
8Accepted4ms3156 KiB
9Accepted4ms3504 KiB
subtask30/14
10Accepted3ms3360 KiB
11Time limit exceeded2.058s3684 KiB
12Time limit exceeded2.059s3640 KiB
13Time limit exceeded2.066s3796 KiB
14Time limit exceeded2.065s3708 KiB
subtask40/14
15Time limit exceeded2.062s3328 KiB
16Time limit exceeded2.046s3868 KiB
17Time limit exceeded2.065s4260 KiB
18Time limit exceeded2.061s4480 KiB
19Time limit exceeded2.038s4316 KiB
subtask50/21
20Accepted582ms4644 KiB
21Time limit exceeded2.053s3908 KiB
22Time limit exceeded2.059s4380 KiB
23Time limit exceeded2.059s4212 KiB
24Time limit exceeded2.066s4360 KiB
25Time limit exceeded2.065s4428 KiB
subtask60/37
26Accepted148ms4540 KiB
27Time limit exceeded2.062s3936 KiB
28Time limit exceeded2.042s4544 KiB
29Time limit exceeded2.065s4416 KiB
30Time limit exceeded2.062s4728 KiB
31Time limit exceeded2.055s4712 KiB
32Time limit exceeded2.062s4780 KiB
33Time limit exceeded2.059s4716 KiB
34Time limit exceeded2.065s4788 KiB