Drivers Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT arr = [ [ 2.1 , 3.0 ] , [ 3.7 , 1.2 ] , [ 1.5 , 6.5 ] , [ 1.2 , 0.0 ] ] NEW_LINE Q = [ 2 , 8 , 5 ] NEW_LINE N = len ( arr ) NEW_LINE M = len ( Q ) NEW_LINE query ( arr , Q ) NEW_LINE DEDENT