Finding Hardest Sum Value
CodeChefOpen on judge ↗
Ramesh, Suresh, Mahesh, and Mukesh are moving to a new city and are looking for apartments to live. Now this city is not like any other city. This city is a matrix of apartments and there are no roads. The only way to commute is to go through apartments. If any of the friends go through an apartment even once, the group will have to pay its full rent. From an apartment, you can go to the apa
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