所属分类:
书籍源码
开发工具:Visual C++
文件大小:46KB
下载次数:5
上传日期:2007-08-26 09:47:57
说明: 给定一个正整数 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.)