作业1.2

所属分类:其他
开发工具:C/C++
文件大小:25KB
下载次数:1
上传日期:2017-10-24 17:02:51
上 传 者豆豆呀
说明:  公鸡每只5元,母鸡每只3元,小鸡3只一元,N元买N只鸡,有多少种买法? 1. 试编程解决买鸡问题。用户输入N,能输出所有的买法,其中N以值调用的形式在函数参数表中出现。 2. 分析算法的复杂度,结合复杂度分析考虑算法如何优化。
(5 yuan per cock, 3 yuan per hen, 3 chicks a dollar, N yuan to buy N chicken, how many kinds of buy? 1. trial programming to solve the problem of chicken. The user input N, can output all buy method, in which N calls in the form of value call in the function parameter table appears. 2. analyzing the complexity of the algorithm and considering the complexity analysis to consider how to optimize the algorithm.)

文件列表:
作业1.2.doc.docx (29327, 2016-09-03)
买鸡问题代码.txt (436, 2016-09-03)

近期下载者

相关文件


收藏者