-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
(X86魔改-1213)GOCLOUD-SX1200-4.2.6.15333.bin
说明: (X86魔改-1213)GOCLOUD-SX1200-4.2.6.15333(Gaoke x86 magic 15333 integrates various plug-ins you know..)
- 2020-10-03 16:47:41下载
- 积分:1
-
内部排序算法比较
一、需求分析
1. 实验要对以下6种常用的内部排序算法进行实测比较:起泡,直接插入,简单选择,快速,希尔,堆排序。
2. 待排序表...
内部排序算法比较
一、需求分析
1. 实验要对以下6种常用的内部排序算法进行实测比较:起泡,直接插入,简单选择,快速,希尔,堆排序。
2. 待排序表的表长不小于100,其中的数据要用伪随机数产生(RAND()),至少要用5组不现的输入数据作比较,比较的指标为有关键字参加的比较次数和关键字参加的比较次数和关键字的移动次数。
3. 最后要对结果作出简单分析,包括对各组数据得出结果波动大小的解释。
-internal sorting algorithm 1, a demand analysis. Experiment on the following six kinds of internal sorting algorithm measured comparison : foaming, direct insertion, simple choice, rapid, Hill, Heap Sort. 2. Sorting tables to the long table is not less than 100, which use the data generated pseudo-random number (RAND ()), be at least five sets of input data are provided for comparison. comparable indicators for the keyword in the number of keywords and the number of participants and the number of mobile keyword. 3. Finally, the results of a simple analysis, including data on the outcome of fluctuations in the size of explanation.
- 2023-01-14 13:35:03下载
- 积分:1
-
字体颜色一个小程序
字体颜色一个小程序-font color a small program
- 2022-03-04 07:58:03下载
- 积分:1
-
Delphi多重文件界面实例
一个Delphi多重MDI文件界面实例,多文档视图窗口的例子。
- 2022-07-09 08:17:48下载
- 积分:1
-
Biometrics-Based-Authentication-Systems
It is a report on biometric based authentication system.
- 2012-04-19 17:35:01下载
- 积分:1
-
GMM
混合高斯em算法matlab源码可算三个参数(Em algorithm for Gaussian mixture can be considered three parameters matlab source)
- 2009-09-28 21:07:42下载
- 积分:1
-
mc-user
适合与岩土工程的摩尔—库伦的UMAT子程序,引用自陈卫忠老师的书中(Mohr- Coulomb and geotechnical UMAT subroutine reference book from Chen Weizhong teacher)
- 2021-04-16 19:08:53下载
- 积分:1
-
实现简单的日记本的程序,可以新建、修改、删除、查找日记本记录。...
实现简单的日记本的程序,可以新建、修改、删除、查找日记本记录。-Realize a simple diary of the process, can create, modify, delete, find diary records.
- 2022-06-21 06:58:17下载
- 积分:1
-
udf-temp
使用用户定义函数(UDF)将液态金属的粘度建模为温度的函数(User Defined Function (UDF) is used to model the viscosity of liquid metals as a function of temperature.)
- 2019-05-24 12:36:43下载
- 积分:1