G. Mass Change Queries time limit per test 3 seconds memory limit per test 512 megabytes input standard input output standard output You are given an array a consisting of n integers. You have to process q queries to this array; each query is given as four numbers l, r, x and