If pair follow this condition insert the pair in vector ans
if ( v [ i ] * v [ j ] >= p * q // 4 and v [ i ] * v [ j ] <= p * q ) : NEW_LINE INDENT ans . append ( [ v [ i ] , v [ j ] ] ) NEW_LINE DEDENT