-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
Zheda probability theory and mathematical statistics class answer
浙大概率论与数理统计课后答案-Zheda probability theory and mathematical statistics class answer
- 2022-08-12 08:49:02下载
- 积分:1
-
内含纯DOS,WIN32控制台和WIN32 GUI三个版本.它们生成的备份文件可以在任何版本中使用. WIN32 GUI版本暂使用备份功能(其他模块也都已全部写...
内含纯DOS,WIN32控制台和WIN32 GUI三个版本.它们生成的备份文件可以在任何版本中使用. WIN32 GUI版本暂使用备份功能(其他模块也都已全部写好,全是完整的,现在仅开启备份功能),如果想使用还原替换和比较功能,可自行打开调用的开关或加几句调用的代码就可以了-Containing pure DOS, WIN32, and WIN32 GUI console in three versions. They generated backup files can be used in any version. WIN32 GUI version temporarily use the backup function (all other modules have also written, is complete, now only open the backup feature), if you want to use to restore the replacement and comparison of features, can open the call a few of the switches or the code can call the
- 2022-02-24 12:25:13下载
- 积分:1
-
SOUCE CODE
一个MATLAB小波分析的程序,这是一个信号处理程序,用于故障诊断。-SOUCE CODE
- 2022-08-21 11:36:00下载
- 积分:1
-
习题,都是习题
习题,都是习题-Exercises are Exercises
- 2022-03-02 19:27:54下载
- 积分:1
-
一个C++的FFT算法的编码…
its a c++ coding for fft algorithm...
- 2022-04-27 18:05:12下载
- 积分:1
-
回文判别
实验要求:称正读和反读都相同的字符序列为“回文”,如“abba”和“abccba”是“回文”,“abcde”和“ababab”则不是“回文”,试设...
回文判别
实验要求:称正读和反读都相同的字符序列为“回文”,如“abba”和“abccba”是“回文”,“abcde”和“ababab”则不是“回文”,试设计一个算法,判别读入的一个以@为结束符的字符序列是否是“回文”。
实验目的:
1、掌握循环队列的定义及应用;
2、掌握队列的基本操作;
3、进一步熟练掌握栈的基本操作及应用;
4、初步学会解决具体问题的算法设计。-Experimental identification requirements palindrome: that is read and the anti-time sequence of characters are the same as a " palindrome" , such as " abba" and " abccba" is " palindrome" , " abcde" and " ababab" is not " palindrome" and try to design an algorithm to determine a time to @ for the character sequence at the end of it is " Palindrome." The experiment was: 1, master cycle and application of the definition of the queue 2, master the basic operation of the queue 3, and further stack master the basic operation and applications 4, a preliminary settlement of specific issues of the Institute of algorithm design.
- 2023-08-10 17:55:02下载
- 积分:1
-
RS码和BCH码译码的MATLAB源文件,可以作为C代码的参考
RS码和BCH码译码的MATLAB源文件,可以作为C代码的参考-RS code and BCH Decoding the MATLAB source file can be used as the reference C code
- 2022-07-06 23:40:11下载
- 积分:1
-
89L VB004
89L 源码-89L VB004
- 2023-04-01 16:30:04下载
- 积分:1
-
类似小画家功能可以用来显示并编辑图档。
类似小画家功能可以用来显示并编辑图档。-Drawing a similar function can be used to display and edit files.
- 2022-02-03 16:58:48下载
- 积分:1