94912024-02-22 11:50:38TuruTamasXorzótáblacpp17Time limit exceeded 14/1002.099s30056 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() {
    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
1Accepted3ms2148 KiB
2Time limit exceeded2.062s3328 KiB
subtask214/14
3Accepted3ms3688 KiB
4Accepted3ms3924 KiB
5Accepted3ms4304 KiB
6Accepted3ms4528 KiB
7Accepted4ms4652 KiB
8Accepted4ms4820 KiB
9Accepted4ms4772 KiB
subtask30/14
10Accepted3ms4840 KiB
11Time limit exceeded2.099s5988 KiB
12Time limit exceeded2.046s7164 KiB
13Time limit exceeded2.066s8776 KiB
14Time limit exceeded2.098s10108 KiB
subtask40/14
15Time limit exceeded2.071s10584 KiB
16Time limit exceeded2.069s12440 KiB
17Time limit exceeded2.058s13900 KiB
18Time limit exceeded2.062s15032 KiB
19Time limit exceeded2.042s16488 KiB
subtask50/21
20Accepted395ms16844 KiB
21Time limit exceeded2.065s16600 KiB
22Time limit exceeded2.055s17476 KiB
23Time limit exceeded2.082s18088 KiB
24Time limit exceeded2.086s18752 KiB
25Time limit exceeded2.059s19236 KiB
subtask60/37
26Accepted104ms19628 KiB
27Accepted1.993s20796 KiB
28Time limit exceeded2.051s22000 KiB
29Time limit exceeded2.03s22748 KiB
30Time limit exceeded2.062s24464 KiB
31Time limit exceeded2.059s25944 KiB
32Time limit exceeded2.058s27348 KiB
33Time limit exceeded2.062s28720 KiB
34Time limit exceeded2.075s30056 KiB