码迷,mamicode.com
首页 >  
搜索关键字:hdu1013    ( 17个结果
HDU1013 Digital Roots 模拟//数学题
Problem Description: The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit th
分类:其他好文   时间:2016-02-02 17:36:24    阅读次数:133
Digit Root ---- 余九定理
题目:hdu1013, hdu1061, hdu1163, hdu1197.ordr(n) = (n-1)%9+1.其中,n-1是为了将结果0-8匹配到1-9.Reference:[1]https://en.wikipedia.org/wiki/Digital_root[2]https://en.w...
分类:其他好文   时间:2015-08-18 18:59:25    阅读次数:498
hdu1013(C++)
9的余数定理:一个数各位数字的总和除以9的余数与它本身除以9的余数同等大数问题:防止大数,用字符串来存入数据,再转化为数字#include#includeusing namespace std;int main(){int N,i;string s;while (cin>>s){if (s[0] -...
分类:编程语言   时间:2015-03-01 15:42:27    阅读次数:142
HDU1013 Digital Roots
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uDescription The digital root of a positive integer is found by summing the digits....
分类:其他好文   时间:2015-02-12 12:02:51    阅读次数:82
hdu 1013 Digital Roots 用一个大水题来纪念我进入杭电前一万名
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are sum...
分类:其他好文   时间:2015-02-08 18:14:30    阅读次数:113
Digital root的求解
源于hdu1013题目描述:The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that...
分类:其他好文   时间:2014-11-23 18:54:41    阅读次数:249
HDU1013_Digital Roots【大数】【水题】
题目大意:给你一个数,若这个数的各个位数上的和为一位数字,则输出结果。否则继续计算上一结果 的各个位数上的和,知道结果为一位数字,进行输出 思路:……...
分类:其他好文   时间:2014-10-13 11:42:19    阅读次数:191
17条   上一页 1 2
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!