-
数根
数也有根吗?有!数根就是把一个数的各个数位上的值相加,直到得到一个一位数为止。请你编写一个程序来计算任意数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
-
心电信号的峰值检测
R peak detect in ECG signal
- 2022-03-21 01:11:20下载
- 积分:1
-
由乘法器组成 单边带信号产生的 仿真源代码 msm
由乘法器组成 单边带信号产生的 仿真源代码 msm -Composed of single sideband signal by the multiplier generated simulation source code msm
- 2022-03-21 18:29:42下载
- 积分:1
-
* Has a debug LED, button, digital control verilog procedures, and debugging in...
*先后调试了LED,按键,数码管的verilog程序,并在实验板上面调试成功!学习FPGA是一个漫长的过程,但是我必须得坚持!前途光明,道路崎岖!
这次在垃圾堆(我工作台下面的抽屉和柜子,呵呵)里面搜索了一个以前用C8051F020作的一个单片机 最小系统,其中有一个PS2的数字小键盘,于是马上鼓捣了一下,复习了一下PS2传输数据的规则,其实还是比较简单的,所以很快就把程序搞定,并在电路板上运行正常!!!
-* Has a debug LED, button, digital control verilog procedures, and debugging in the experiment above board success! FPGA is a long learning process, but I have to insist! A bright future, roads and rugged! In the garbage (I workbench drawers and cabinets below, huh, huh) search inside a previously C8051F020 minimum for a single-chip systems, which have a small number of PS2 keyboard, then immediately鼓捣, then review the PS2 data about the rules, in fact, relatively simple procedures so they get very quickly, and in the normal operation of the circuit board! ! !
- 2022-02-13 14:46:38下载
- 积分:1
-
读取按键状态,按键1按下,P2口连接的发光二极管从左到右亮;按键2按下,P2口连接的发光二极管从右到左亮。...
读取按键状态,按键1按下,P2口连接的发光二极管从左到右亮;按键2按下,P2口连接的发光二极管从右到左亮。-state reading keys, press a button, P2 connectors of the LED-from left to right; 2 Press the button, P2 connectors of the LED-from right to left.
- 2022-11-09 15:45:04下载
- 积分:1
-
Microtune Silicon Tuner Company source
microtune 公司 硅高频头 源码-Microtune Silicon Tuner Company source
- 2022-06-15 02:34:15下载
- 积分:1
-
WEB Automatic Daguai practice game feature automatically see the pictures you cl...
网页自动打怪练习游戏功能自动看图片你再点击一下吧
- 2022-05-31 01:53:57下载
- 积分:1
-
SD卡资料.rar里边有3个文件,包括SD卡手册,SD卡操作时序图,SD卡CSD寄存器翻译的 中文手册...
SD卡资料.rar里边有3个文件,包括SD卡手册,SD卡操作时序图,SD卡CSD寄存器翻译的 中文手册-SD card. Rar inside has three documents, including SD card manual, SD card operated timing diagram, SD card CSD register of the Chinese translation of the manual
- 2023-07-10 03:35:04下载
- 积分:1
-
详细说明了同步的原理,包括载波同步…
详细讲解了同步原理,包括载波同步、位同步、帧同步-Detailed account of the principle of synchronization, including the carrier synchronization, bit synchronization, frame synchronization
- 2022-01-31 20:51:03下载
- 积分:1
-
1用Visual C++开发的战棋游戏(源代码)
一个用Visual C++开发的象棋对战游戏(含源码)-1 with Visual C++ development Chess Battle Game (with source code)
- 2022-03-12 07:06:15下载
- 积分:1