AT_abc484_f [ABC484F] Make them monochrome
Description
There is an integer sequence $ A=(A_1,A_2,\dots,A_N) $ of length $ N $ .
Process the following $ Q $ queries.
Type $ 1 $ :
> 1 $ i $ $ x $
Change $ A_i $ to $ x $ .
Type $ 2 $ :
> 2 $ l $ $ r $
Suppose that each $ -1 $ contained in $ A_l,A_{l+1},\dots,A_r $ can be replaced with an arbitrary positive integer. Print `Yes` if $ A_l,A_{l+1},\dots,A_r $ can all be made equal, and `No` otherwise.
Input Format
The input is given from Standard Input in the following format, where $ {\rm Query}_i $ denotes the $ i $ -th query:
> $ N $ $ Q $ $ A_1 $ $ A_2 $ $ \dots $ $ A_N $ $ {\rm Query}_1 $ $ {\rm Query}_2 $ $ \vdots $ $ {\rm Query}_Q $
Output Format
Each time a query of type $ 2 $ is given, print the answer to that query in one line.
Explanation/Hint
### Sample Explanation 1
This input contains $ 9 $ queries.
Below, we explain the first $ 3 $ queries.
- Initially, $ A=(5,-1,3,-1,2,3,4,5) $ .
- The $ 1 $ -st query is of type $ 2 $ , and the subarray in question is $ (3,-1,2,3) $ . These cannot all be made equal by the operation in the problem statement, so print `No`.
- The $ 2 $ -nd query is of type $ 1 $ , and changes $ A_5 $ to $ -1 $ . As a result, $ A=(5,-1,3,-1,-1,3,4,5) $ .
- The $ 3 $ -rd query is of type $ 2 $ , and the subarray in question is $ (3,-1,-1,3) $ . These can all be made equal by the operation in the problem statement, so print `Yes`.
### Constraints
- All input values are integers.
- $ 1 \le N,Q \le 3 \times 10^5 $
- $ -1 \le A_i \le 10^6 $
- $ A_i \neq 0 $
- Queries of type $ 1 $ satisfy the following constraints:
- $ 1 \le i \le N $
- $ -1 \le x \le 10^6 $
- $ x \neq 0 $
- Queries of type $ 2 $ satisfy the following constraints:
- $ 1 \le l \le r \le N $