Hello there I've been reading up on MO's algorithm and sqrt decomposition and i think i've figured out the concept
so i'm trying to solve this problem but i keep getting TLE and i can't seem to figure out what i'm doing wrong
Here's my code
Thank you all in advance :D