基础强化报告新编范本.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PAGE PAGE 2 附件1: 学 号: 0121210680529 课 程 设 计 (基础强化训练) 题 目 Smith Numbers 学 院 计算机科学与技术 专 业 软件工程 班 级 Zy1202 姓 名 胡小意 指导教师 段鹏飞 2014 年 7 月 11 日 课程设计任务书 学生姓名: 胡小意 专业班级: 软件zy1202 指导教师: 段鹏飞 工作单位:计算机学院 题 目: Smith Numbers 初始条件: 输入: The input file consists of a sequence of positive integers, one integer per line. Each integer will have at most 8 digits. The input is terminated by a line containing the number 0. 输出: For every number n 0 in the input, you are to compute the smallest Smith number which is larger than n,and print it on a line by itself. You can assume that such a number exists. 要求完成的主要任务: (包括课程设计工作量及其技术要求,以及说明书撰写等具体要求) 1、完成算法分析 2、给出对应的程序流程图 3、给出能正确实现的程序源码 5、给出试算截屏图 6、课程设计工作的分析与总结 7、给出不少于5篇参考文献。 时间安排: 2014-7-7到2014-7-11 指导教师签名: 年 月 日 系主任(或责任教师)签名: 年 月 日 目录 TOC \o 1-3 \h \z \u 1 注册资料 4 2 选题描述 4 3 算法分析 5 3.1 构造逐位相加之和函数 5 3.2 求史密斯数 5 4 程序流程图 6 5 程序源码 8 6 试算截屏图 9 7 分析与总结 9 8 参考文献 9 1 注册资料 用户名:huxiaoyi 密码:123456789 选题题号:1142 2 选题描述 Description While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University,noticed that the telephone number of his brother-in-law H. Smith had the following peculiar property: The sum of the digits of that number was equal to the sum of the digits of the prime factors of that number. Got it? Smiths telephone number was 493-7775. This number can be written as the product of its prime factors in the following way: 4937775= 3*5*5*65837 The sum of all digits of the telephone number is 4+9+3+7+7+7+5= 42,and the sum of the digits of its prime factors is equally 3+5+5+6+5+8+3+7=42. Wilansky was so amazed by his discovery that he named this kind of numbers after his brother-in-law: Smith numbers. As this observation is also true for every prime number, Wilansky decided later that a (simple and unsophisticated) prime number is not w

文档评论(0)

wx171113 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档