-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
整体刚度矩阵
说明: 说明:该程序用于有限元分析求梁的整体刚度矩阵(Note: the program is used to calculate the overall stiffness matrix of the beam by finite element analysis)
- 2020-10-21 12:17:24下载
- 积分:1
-
BOOST-PFC-300v-60hz-100Ω仿真
基于psim软件,BOOST升压电路,利用电流和电压双反馈控制纹波和输出波形(BOOST boost circuit.We use current and voltage feedback to control ripple and output waveform.)
- 2018-04-12 11:52:58下载
- 积分:1
-
vfwwnd
我近期从事视频开发所以将我参考的资料上传给大家看看。(I recently engaged in video development, therefore, refer to the information I upload to the U.S. to see.)
- 2008-07-02 11:33:12下载
- 积分:1
-
含分布式电源的配电网日前两阶段优化调度模型
这是一篇文献,我将与之配套的代码已经传到网上了,见C11调度光伏.rar(This is a document, and the code I have matched with it has been sent to the Internet. See C11 dispatching PV.Rar.)
- 2020-11-19 19:49:37下载
- 积分:1
-
一些数学建模实例可供参考,可供参考。
数学建模的一些示例,可供参考,可用Lingo实现.-Some examples of mathematical modeling is available for reference, can be used to achieve Lingo.
- 2022-06-18 17:42:54下载
- 积分:1
-
Lin_Deep_Learning_of_2015_CVPR_paper
这是一篇关于图像检索的文章,主要内容如下:在第2部分对哈希算法的相关工作和基于深度学习的图像检索进行了回顾,在第3部分详述了所提出的一个新颖算法,最后,在第4部分和第5部分分别给出了实验结果和结论。(This paper is organized as follows: the related work of hashing algorithms and image retrieval with deep learning are briefly reviewed in Section 2. the details of a new method is elaborated on in Section 3. Finally, experimental results are provided in Section 4, followed by conclusions in Section 5.)
- 2020-06-22 00:20:02下载
- 积分:1
-
Machinery Industry Press Ya
机械工业出版社刘亚峰电子商务概论PPT课件共十章-Machinery Industry Press Ya-Feng Liu a total e-commerce courseware PPT Introduction to Chapter 10
- 2022-06-12 00:26:18下载
- 积分:1
-
Churraskito
pr 提权源码 支持cmd自定义路径
vc 6++ 编译通过(pr mention the right source to support cmd custom path)
- 2012-04-27 10:22:22下载
- 积分:1
-
噪声生成(matlab)
代码中含有各种生成噪声的MATLAB代码,如高斯噪声,椒盐噪声等(The code contains all kinds of noise generated by MATLAB code, such as Gauss noise, salt and pepper noise, etc.)
- 2020-06-23 18:40:01下载
- 积分:1