-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数N(0≤N≤1000000000000)的...
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数N(0≤N≤1000000000000)的根。
输入:
输入有多个案例。每一个案例为一行,每行只有一个整数N。当输入的N是-1时,输入结束。
输出:
每一个案例输出一行。每行只有一个数字,就是N对应的数根。
Sample input
39
-1
Sample output
3-Number of root number also has roots do? There is! The number of roots is to a number of different values on the digital sum until they have been a number of up to one. Please write a program to calculate an arbitrary number N (0 ≤ N ≤ 1000000000000) roots. Input: Enter a number of cases. Each case for the line, each line is only an integer N. When the input of N is-1, the input end. Output: the output line of each case. There is only one number per line, that is, N corresponds to the number of roots. Sample input 39-1 Sample output 3
- 2023-09-05 21:25:03下载
- 积分:1
-
helq-file-help
本文件是poly16相位调制方式的仿真实现方案,希望能对大家有所帮助(This file is poly16 simulation implementation scheme of phase modulation mode can hope to be of help)
- 2017-08-13 14:13:34下载
- 积分:1
-
VHDL语言100例详解(含代码)
基于CAN通信的介绍,ISO11898标准的介绍,对于学习CAN通信很有帮助(Based on the introduction of CAN communication, ISO11898 standard introduction, for learning CAN communication helpful)
- 2017-08-02 18:39:34下载
- 积分:1
-
选择类问题优化算法
说明: 选择类问题优化算法,启发式仿生类优化算法(An optimization algorithm based on problems of sample selection)
- 2020-06-21 15:40:02下载
- 积分:1
-
COHESIVE
说明: 插入cohesive单元, 便于用户在ABAQUS使用时方便插入cohesive单元材料(insert cohesive element)
- 2020-05-29 20:02:39下载
- 积分:1
-
DSPTI C6000 ZBTRAM的使用历程,初学者必读
DSPTI C6000 ZBTRAM的使用历程,初学者必读-DSPTI C6000 ZBTRAM the use of the course, the required reading beginners
- 2022-02-18 15:02:09下载
- 积分:1
-
Machine-Learning-master
聚类算法,DBscan,决策树,逻辑回归,svm等机器学习python代码(DBscan python pythonpython Decision Tree Regression Trees)
- 2018-07-14 09:31:57下载
- 积分:1
-
JSP在线销售管理系统
JSP在线销售管理系统,简易java(easyjf)框架开源订销管理系统(测试版),服务器环境,tomcat5.0,主要实现的功能有订单录入、打印,销售汇总、原料管理、客户管理、生产配料计算、报表打英汇总、系统数据管理及维护等功能,是一个使用非常简单的编码方式实现的Web开源应用系统。安装注意事项:
1、本订销系统程序默认使用数据为连接池使用的apache commons-dbcp-1.2.1管理数据库连接(tomcat自带),确保该包可用.若要使用其它数据库连接沲,需要修改easyjf-dbo.xml文件中的相应配置。
2、若不能正常访问数据库,首先确认相关配置是否正确.然后可把以下的JDBC驱动程序拷贝到tomcat的commonlib目录。
mysql-connector-java-3请.1.11-bin.jar(mySql的驱动)
msbase.jar(MSSql的驱动)
mssqlserver.jar(MSSql的驱动)
msutil.jar(MSSql的驱动)
3、本订销系统资源文件使用的绝对路径。因此,需要要把订销系统程序设置成主站方式运行,尽量不要用Web虚拟目录方式。
4、系统使用Log4j-1.2 作为日志系统,通过更改Web-infclasseslog4j.properties 的设置可以查看系统运行的详细日志信息.
- 2022-09-02 16:00:03下载
- 积分:1
-
LMS自适应滤波
说明: 最小均方(LMS)自适应滤波器、递推最小二乘(RLS)滤波器格型滤波器和无限冲激响应(IIR)滤波器等。这些自适应滤波技术的应用又包括:自适应噪声抵消、自适应谱线增强和陷波等。(Least mean square (LMS) adaptive filter, recursive least square (RLS) filter, lattice filter and infinite impulse response (IIR) filter. The applications of these adaptive filtering techniques include adaptive noise cancellation, adaptive spectral line enhancement and notch filtering.)
- 2020-12-28 17:51:11下载
- 积分:1
-
C#字节单位转换,KB/MB转换
C#字节单位转换,KB/MB转换,也就是字节单位的转换程序,字符的转换,不是文件字节的转化,度量换算单位的转换,有兴趣的可参考下,测试截图如图所示。
- 2022-07-03 15:01:40下载
- 积分:1