Rosetta Problems

Free Contest Testing Round 16 - AQUERY2

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