← All problemsSign in

Sort

Ahmed a trois sorts. Leurs puissances sont respectivement $A$, $B$ et $C$. Initialement, Ahmed a $0$ points de vie, et s'il utilise un sort de puissance $P$, alors son nombre de points de vie augmente de $P$. Avant de s'endormir, Ahmed veut utiliser exactement deux sorts sur ces trois. Trouvez le nombre maximum de points de vie qu'Ahmed peut avoir après avoir utilisé les sorts. ### Input - La p

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start