php - Detecting if integer can be written as sum of given integers -
Understand that I'm 3,5,610,10 constant, with the number of words at least one of these constants As a yoga, how can you know how to write $ n?
Example
$ n = 10, S = 10 $ n = 18, S = 9 + 9 $ n = 24, S = 9 + 9 + 6 $ n = 27, S = 9 + 9 + 9 $ n = 28, S = 10 + 9 + 9
thanks
Comments
Post a Comment