阅读背景:

PAT A1096 Consecutive Factors (20point(s))

来源:互联网 
!-- flowchart 箭头图标 勿删 --

Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are the three consecutive numbers. Now given any positive N, you are supposed to find the maximum number of consecutive factors, and list the smallest sequence of the consecutive factors.Among a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: