Not able to understand the ques >>

Need breif explanation - not able to understand the ques

if query is of type 1
then you have given coordinates of hostel

if query is of type 2
then you have to print the distance of kth nearst hostel from origin

distance between two points ( x2 , y2 ) and ( x1 , y1 ) is defined as (x2 - x1)2 + (y2 - y1)2

how many no of inputs we should take in a single row?

plz give me the code if you can!!!

sorry i am not able to reply you

Code for hostel visit
you have to simply use priority queue(max heap)