// NOTE: it is recommended to use this even if you don't understand the following code. #include #include #include #include #define MAXN 100000 int K, N, bottomLeftX, bottomLeftY, bottomRightX, bottomRightY, i, topLeftX, topLeftY, topRightX, topRightY; int X[MAXN], Y[MAXN]; 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", &topLeftX, &topLeftY)); assert(2 == scanf("%d%d", &topRightX, &topRightY)); assert(2 == scanf("%d%d", &bottomRightX, &bottomRightY)); assert(2 == scanf("%d%d", &bottomLeftX, &bottomLeftY)); assert(1 == scanf("%d", &N)); for (i = 0; i < N; ++i) assert(2 == scanf("%d%d", &X[i], &Y[i])); K = 0; // INSERT YOUR CODE HERE printf("%d\n", K); return 0; }