trying to write a recursive function that counts the number of sequences that sum up to that number C++

后端 未结 6 1530
野趣味
野趣味 2021-01-20 02:01

Okay, so here is what I\'m trying to do. The user inputs a number. I\'m trying to write a recursive function that counts the number of sequences that sum up to that number (

6条回答
  •  迷失自我
    2021-01-20 02:40

    i think it is close to the probability theory
    amount of combinations of set {1,2,3,4,5,6} giving summary 6

提交回复
热议问题