Chef and MaxValue
CodeChefOpen on judge ↗
Chef is in the organising team of Genesis ’17 and he wants everything to be his way. The other fellows in the organising team are counting the number of participants N in the event “Codechef Wars”, but the chef wants N to be in such an order where every digit is greater than or equal to the previous digit. The Chef does not like if the numbers do not follow this rule. Your job is to find the maxi
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