Rosetta Problems

Free Contest 102 - AQUERY

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