Andrey's submission of Triangular Queries | CodeChef