文件名称:sum
介绍说明--下载内容均来自于网络,请自行研究使用
给定一个正整数 n,计算有多少个不同的连续自然数段,其和恰为 n。例如,当 n=27
时,有4个不同的连续自然数段的和恰为27:2+3+4+5+6+7;8+9+10;13+14;27。 -Given a positive integer n, calculate the number of consecutive natural number of different paragraph, and its and exactly n. For example, when n = 27 when the four have a different section of consecutive natural numbers and exactly 27:22 B! 3+ 4+ 5+ 6+ 7 8+ 9+ 10 13+ 14 27.
时,有4个不同的连续自然数段的和恰为27:2+3+4+5+6+7;8+9+10;13+14;27。 -Given a positive integer n, calculate the number of consecutive natural number of different paragraph, and its and exactly n. For example, when n = 27 when the four have a different section of consecutive natural numbers and exactly 27:22 B! 3+ 4+ 5+ 6+ 7 8+ 9+ 10 13+ 14 27.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
sum.cpp
连续和问题.pdf
连续和问题.pdf