MP

Manish PathakCompetitive Programming · 2y

Hi! I have a question that i am not able to figure out.

We have two numbers N and D

and we can do two operations i.e.

1.N=N+D

2.N=sum of digits(N)

by using these two operations we have to minimize the value of N and also have to determine the minimum operation required.

Read more… (53 words)