 font-content"><div style="position: relative; overflow: hidden;"><div class=content><div>The first line contains an integer T, denoting the number of the test cases.</div>
<div>For each test case, the first line contains a integers n.</div>
<div>The next line contains n integers a_1,a_2,...,a_n separated by a single space.</div>
<div>The next line contains an integer Q, denoting the number of the operations.</div>
<div>The next Q line contains 4 integers t,l,r,x. t denotes the operation type.</div>
<d