(ProjectEuler) Sum Combinations

前端 未结 7 1617
忘了有多久
忘了有多久 2020-12-30 08:09

From ProjectEuler.net:

Prob 76: How many different ways can one hundred be written as a sum of at least two positive integers?

I have no ide

7条回答
  •  感情败类
    2020-12-30 08:52

    A good way to approach these is not get fixated on the '100' but try to consider what the difference between totalling for a sum n and n+1 would be, by looking for patterns as n increases 1,2,3....

    I'd have a go now but I have work to do :)

提交回复
热议问题