文件名称:fencaichan
介绍说明--下载内容均来自于网络,请自行研究使用
国王分财产。某国王临终前给儿子们分财产。他把财产分为若干份,然后给第一个儿子一份,再加上剩余财产的1/10;给第二个儿子两份,再加上剩余财产的1/10;……;给第i个儿子i份,再加上剩余财产的1/10。每个儿子都窃窃自喜。以为得到了父王的偏爱,孰不知国王是“一碗水端平”的。请用程序回答,老国王共有几个儿子?财产共分成了多少份?-King divided the property. Sons divided the property before the death of a king. Property is divided into a number of copies, and then a first son, coupled with the residual assets of the 1/10 surplus property to the second son of two, plus 1/10 ...... to the i a son i, plus the residual assets of the 1/10. Each son selfish, hi. Thought that the preference of the father, everyone knows that the king is " equal justice" . Please answer with the program, the old king of the sons? The property is divided into the number of copies?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
fencaichan.cpp