Best Enemies
CodeChefOpen on judge ↗
Chef and Aditya are enemies. Chef is obsessed with large positive integers but he won't perform any operation with an integer or it's multiples which is chosen by Aditya (2 or 3).Chef was in hurry as he had to attend a party, so he assigned the task of creating the largest number possible by the given digits in number. You can use a digit only once and the length of largest number should be equal
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