-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
一个保护眼睛的程序
一个保护眼睛的程序-one eye protection procedures
- 2022-01-26 03:16:55下载
- 积分:1
-
MFC实现计算器功能
开发工具VS2012,MFC基于对话框实现计算器功能。可以进行加、减、乘、除、开方、求倒等等功能。之前在VC6.0上实现过,但是,目前换成了VS2012,部分代码和在VC6.0上是不一样的,已经实验通过。
- 2022-08-03 04:28:00下载
- 积分:1
-
游戏运行时,你只需输入"押金"(任意整数),然后系统会提示你输入一个数,试试看,说不定你要猜中,还要动点脑子哟!^_^祝君好运...
游戏运行时,你只需输入"押金"(任意整数),然后系统会提示你输入一个数,试试看,说不定你要猜中,还要动点脑子哟!^_^祝君好运-running game, you only need to input the "deposits" (arbitrary integer), the system will then prompt you for a few, give it a try, perhaps you want to guess, but also fixed point brain yo! ^ _ ^ Best of luck
- 2022-02-26 22:24:35下载
- 积分:1
-
tc graphical programming of the mouse and keyboard first important document
tc图形编程中的鼠标和键盘的重要头文件-tc graphical programming of the mouse and keyboard first important document
- 2022-01-21 21:50:57下载
- 积分:1
-
用分支限界方法求解最淡哈密顿回路,可以球接到30以上
用分支限界方法求解最淡哈密顿回路,可以球接到30以上-Using branch and bound method for solving the most light Hamiltonian circuit, you can receive the ball for more than 30
- 2022-01-26 04:04:11下载
- 积分:1
-
java编写的一款简单的拼图游戏,可以下载到手机上玩
java编写的一款简单的拼图游戏,可以下载到手机上玩-java prepared a simple jigsaw puzzle, you can download to your phone to play
- 2022-05-12 12:27:55下载
- 积分:1
-
a system of data sample
八路数据采集系统
含有各个详细的子程序-a system of data sample
- 2023-08-13 12:00:02下载
- 积分:1
-
1.支持文章,论坛,图片,flash,音乐,BT等采集.
2.增加自定文件采集.用户可采集网页中的所有文件.
3.采集内容替换功能,用户可设置替换规则进...
1.支持文章,论坛,图片,flash,音乐,BT等采集.
2.增加自定文件采集.用户可采集网页中的所有文件.
3.采集内容替换功能,用户可设置替换规则进行替换.
4.支持所有文件远程保存到本地.
5.断点续采功能.不受意外关闭影响,重新启动后可继续采集 不重复.
6.支持多种CMS导库,本程序 与(科汛网站管理系统V2.2)整合在一起.
7.增加2级分类采集。适应各种网站采集.
8.缓存机制,在缓存中保存数据,操作常见动作,大量减少对数据库的增加,删除频繁的操作。
用户:admin
密码:admin
-1. Support articles, forums, photos, flash, music, so BT acquisition. 2. an increase in fixed document collection. website users can collect all the documents. 3. content Acquisition replacement gong energy, users can set up rules to replace the replacement. 4. all documents supporting the preservation of the local long-distance. 5. Breakpoint continued mining function. not the closure affected by the accident, the restart will continue after acquisition will not repeat them. 6. CMS support for a variety of guided arsenals, this procedure (Section website flood management system V2.2) together. 7. two additional classification acquisition. Adapt site acquisition. 8. Cache mechanism, the preservation of data cache,
- 2022-01-25 17:08:02下载
- 积分:1
-
弹力球游戏,c++开发,比较简单的,对初学者学习很有帮助
弹力球游戏,c++开发,比较简单的,对初学者学习很有帮助-ball game,by C++
- 2022-05-07 03:39:50下载
- 积分:1