Rosetta Problems

Beginner Free Contest 11 - AQUERY2

https://oj.vnoi.info/problem/fcb011_aquery2