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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -