Susobhan in BorrowLand
CodeChefOpen on judge ↗
Mr Susobhan lives in the city of Borrow-Land. He is looking to borrow as much money he can before he catches a flight to London. The city of Borrow-Land can be considered as an infinite grid. There are n lenders in the city located at a point (xi , yi ) who can lend at most Wi money. But Mr Susobhan borrows all the money the lender has. No two lenders share the same location and no lender is pres
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start