// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #include #define MAXM 200000 #define MAXK 100000 #define MAXL 200000 int K, L, M, N, U, V, i; int X[MAXM], Y[MAXM], Z[MAXM]; long long T[MAXK]; int P[MAXL]; long long ans; int main() { // uncomment the two following lines if you want to read/write from files // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); assert(6 == scanf("%d%d%d%d%d%d", &N, &M, &K, &L, &U, &V)); for (i = 0; i < M; ++i) assert(1 == scanf("%d", &X[i])); for (i = 0; i < M; ++i) assert(1 == scanf("%d", &Y[i])); for (i = 0; i < M; ++i) assert(1 == scanf("%d", &Z[i])); for (i = 0; i < K; ++i) assert(1 == scanf("%lld", &T[i])); for (i = 0; i < L; ++i) assert(1 == scanf("%d", &P[i])); ans = 0; // INSERT YOUR CODE HERE printf("%lld\n", ans); return 0; }