NUMBER GAME
CodeChefOpen on judge ↗
You will be given two integers $S$ and $N$. Print the minimum integer which satisfies the given conditions - $S$ denotes the sum of digits of required number - $N$ denotes number of digits in the required number. **Print -1 if no such number Exists.** ### Input - Two spaced integers, $S$ and $N$ ### Output Print minimum integer which satisfies the given condtions.Print -1 if no such number Exi
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