Rosetta Problems

Free Contest Testing Round 11 - BQUERY2

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