in this problem according to questions for queries type 2 resultant answer should be 128 instead of 98 any one. any one please explain why 98.
Competitive programming Hostel Visit
for 3rd output result
it will be 98 bro.
all distances are 50,72,98,128,162,200.
and 3rd smallest is 98.
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
can you explain input and out format following sample input and how it work
9 3
1 10 10
1 9 9
1 -8 -8
2
1 7 7
2
1 6 6
1 5 5
2
output
200
162
98