harbor run -t openthoughts/tasktrove-mix-h11-compositional-gradient-v2-mix-h11-compositional-0996
harbor download openthoughts/tasktrove-mix-h11-compositional-gradient-v2-mix-h11-compositional-0996
Your task is to find the smallest possible sum of the digits in the decimal notation of a positive multiple of a given integer ( K ).
Input:
K = 5
Output:
5
Explanation: The smallest positive multiple of 5 is 5 itself, and the sum of its digits is 5.
K = 10
1
Explanation: The smallest positive multiple of 10 is 10, which has a digit sum of 1 (1 + 0 = 1).
K = 15
6
Explanation: The positive multiple of 15 with the smallest digit sum is 15 (1 + 5 = 6).
Please implement your solution and place the code in the /app/ directory.
/app/