
Yet Another Array Queries Problem
You are given an array a of size n, and q queries to it. There are queries of two types: 1 l i r i — perform a cyclic shift of the segment [l i, r i] to the right. […]
You are given an array a of size n, and q queries to it. There are queries of two types: 1 l i r i — perform a cyclic shift of the segment [l i, r i] to the right. […]