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