Given a natural number , a base , and a natural number , print in base , but placing the digits of in groups of at every line.
Input consists of several cases, each with , , and .
For every case, print in base , but placing digits at every line. If the number of digits of in base is not a multiple of , the first line must be the shortest. Print a line with 10 dashes at the end of every case.
You should not use vectors or alike to solve this problem.
Author: Unknown
Translator: Salvador Roura
Generation: 2026-01-25T12:01:29.174Z
© Jutge.org, 2006–2026.
https://jutge.org