MULTQ3 - Editorial

can someone tell me what is going wrong here. i used 3 segment trees instead of a node containing 3 values .

thanks in advanced.

Sol :
Is this problem not for python programmers? I am getting TLE using Segment tree + Lazy Propagation

You forgot to use the modulo operator.
Correct code should have lazy[c]%3==1