AtCoder D — Sequence Query
I have already seen editorial, but getting WA. Here is the problem and this is my code. Can you please help me?
Thanks!
Mock ICPC Prelims Contest 1 Solution Discussion