MULTQ3 - Editorial

can someone tell me what is going wrong here. i used 3 segment trees instead of a node containing 3 values .
https://www.codechef.com/viewsolution/29924416

thanks in advanced.

Sol : https://www.codechef.com/viewsolution/36765516
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