Interesting numbers
CodeChefOpen on judge ↗
Description If a number n is said to be an interesting number, then while adding n with n + 1 it must not produce any carry. For example n = 5,6,7,8 are non-interesting numbers since they produce the carry. You have given two integers n and x then construct a new integer, s, by repeating n a total of x times. For example n = 51 and x = 3,then s = 515151. Given two inputs n and x, then construct s
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