← All problemsSign in

Monumental

Scube will give you 4 non-negative integers. You can perform the following type of operations: - Take one number and increment it by 2, while decrementing the other three numbers by 1. The operation can be performed only if the three numbers getting decremented are strictly positive. Your goal is to maximize the maximum of the 4 numbers. Input: The first line contains the four numbers. Output

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