1 <= N <= 1000
如何找到可被N整除的最小正数,其数字和应等于N.
例如: N:结果 1:1 10:190
并且算法不应超过2秒.
任何想法(Pseudocode,pascal,c ++或java)?
algorithm math
algorithm ×1
math ×1