Multiplying by Rotation
CodeChefOpen on judge ↗
Multiplication of natural numbers in general is a cumbersome operation. In some cases however the product can be obtained by moving the last digit to the front. Example: 179487 * 4 = 717948 Of course this property depends on the numbersystem you use, in the above example we used the decimal representation. In base 9 we have a shorter example: 17 * 4 = 71 (base 9) as (9 + 7) * 4 = 7 * 9 +1 Inpu
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