// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #define MAXN 200000 #define MAXM 200000 int K, M, N, P, i; int T[MAXN]; int A[MAXM], B[MAXM]; 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(2 == scanf("%d%d", &N, &K)); for (i = 0; i < N; ++i) assert(1 == scanf("%d", &T[i])); assert(1 == scanf("%d", &M)); for (i = 0; i < M; ++i) assert(2 == scanf("%d%d", &A[i], &B[i])); P = 0; // INSERT YOUR CODE HERE printf("%d\n", P); return 0; }