Problem: You are given a -indexed array of length where each element is or .
Process queries of the following two types:
- "1 s": check if there exists a subarray of whose sum equals to .
- "2 i v": change to .
An array is a subarray of an array if can be obtained from by deletion of several (possibly, zero or all) elements from the beginning and several (possibly, zero or all) elements from the end. In particular, an array is a subarray of itself.
Input Format: Each test contains multiple test cases. The first line contains a single integer () — the number of test cases. The description of the test cases follows.
The first line of each test case contains two integers and () — the length of array and the number of queries.
The second line of each test case contains integers ( is or ) — the elements of array .
Each of the following lines of each test case contains some integers. The first integer is either or .
- If is , it is followed by one integer ().
- If is , it is followed by two integers and (, is or ).
It is guaranteed that the sum of and the sum of over all test cases both do not exceed .
Output Format: For each query with , output "YES" in one line if there exists a subarray of whose sum is equals to , otherwise output "NO".
You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses.
Note: Consider the first example:
- The answer for the first query is "YES" because .
- The answer for the second query is "YES" because .
- The answer for the third query is "NO" because we cannot find any subarray of whose sum is .
- After the fourth query, the array becomes .
- The answer for the fifth query is "YES" because .