MAXIMISING SUM
CodeChefOpen on judge ↗
Rani is the prettiest girl in the college, and our dear Raja is after her. Rani has recently started Competitive Programming, and got stuck on a very easy question. To impress her Raja wants to help her. But he is no good in it either. He desperately wants your help. Can you help him?? The problem says: Your Initial Score is Zero. You are given four numbers a, b, c, d in this specific order.
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