An Alternative Way
Description:
You are given two arrays and , each of length . You are allowed to perform the following operation on array any number of times (including zero):
- Choose two indices and such that ;
- For each index from to (both inclusive),
- Set if is odd.
- Set if is even.
Determine whether you can make the array equal to the array by performing the operation any number of times.
Input The first line contains a single integer (