数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
VC_基于神经网络的数字识别系统. VC_基于神经网络的数字识别系统.
上传时间: 2013-12-29
上传用户:lanjisu111
通过神经网络进行数字识别,只加了7个数,可加至10个数字
上传时间: 2015-05-24
上传用户:梧桐
See Appendix B for a description of the programs included on this companion disk. RESOURCE.WRI identifies other books and resources for Internet programming. WEBHELP.HLP contains an introduction to the World Wide Web. TCPMAN.HLP provides detailed instructions to help you use the Trumpet Winsock included on this disk. Use the Program Manager s File menu Run option to execute the SETUP.EXE program found on this disk. SETUP.EXE will install the programs on your hard drive and create an Internet Programming group window. Internet编程技术 [配套程序] [涉及平台] VC [作者] void [文件大小] 1032K
标签: description companion Appendix RESOURCE
上传时间: 2013-12-04
上传用户:asasasas
程序用JAVA语言编写, 综合利用图结构和堆栈结构进行数据组织和处理. 可以进行正则表达式到NFA的转化, 并能用图形直观的表示. 对正则表达式有一些约定, 就是可以用单个字符表示输入, 也可以用 ‘ ‘ 连接起来的一串字符进行输入. 有基本的表达式以及由基本表达式构成的并置, 选择和重复的操作. 例: A|b*c ‘letter’*’digit’ 等都是合法输入. 还带有括号功能, 优先级
上传时间: 2015-05-26
上传用户:金宜
一个基于ASP+access技术的b/s模式的CRM(客户关系管理)系统
上传时间: 2014-01-27
上传用户:wsf950131
用vb编写的B样条曲线!!直接运行即可,它主要是数值计算的一个有用软件
上传时间: 2014-01-05
上传用户:894898248
网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个人办公室 通讯录 邮件服务 其中个人办公室又包括 工作日志 个人资料 记事本 区号查询 出差记录 万年历 个人通讯录 我的客户 主界面附设有可扩展的功能模块,可以定制适合您企业的特殊功能模块
上传时间: 2014-01-22
上传用户:wpwpwlxwlx
采用Bp网络实现0-9十个数字的识别,演示程序
上传时间: 2014-01-27
上传用户:ztj182002
数据采集系统就是采集传感器输出的模拟信号并转换为计算机可以识别的数字信号,送入计算机并进行记录或打印
上传时间: 2014-12-22
上传用户:libenshu01