Given an array,
1 l_1 r_1 l_2 r_2
: Output 1
if the subarray from 0
if they are not identical. An array is identical to another if the lengths are equal and the same numbers are present in the same order.
2 i v
: Update the integer at index
Constraints
For all subtasks:
Subtask 1 [20%]
Subtask 2 [80%]
No additional constraints.
Input Specification
The first line will contain
The next line will contain
The next
Output Specification
For each query of type 1
if the arrays are identical and 0
if they are not.
Sample Input
Copy
5 4
1 3 1 3 1
1 1 5 1 5
1 1 3 3 5
2 3 4
1 1 3 3 5
Sample Output
Copy
1
1
0
Comments