Niyaz Nigmatullin's submission of Triangular Queries | CodeChef