http://acm.hdu.edu.cn/showproblem.php?pid=3709
Problem Description
A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagi...
分类:
其他好文 时间:
2015-02-22 23:06:28
阅读次数:
194
题意:某个数加上该数的各个位数的和等于另一个数,那么这个数就是另一个数的生成元。求生成元,不存在则输出0;KEY:打表,减少运算;/*打表,一般不是很复杂的数学题试试打表找到规律*/#include #include #include const int maxn = 100000 + 5;int ...
分类:
其他好文 时间:
2015-02-22 13:26:51
阅读次数:
197
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 resultin...
分类:
其他好文 时间:
2015-02-22 11:07:30
阅读次数:
116
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:
其他好文 时间:
2015-02-21 16:33:11
阅读次数:
132
For a positive integerN, the digit-sum ofNis defined as the sum ofNitself and its digits. WhenMis the digitsum ofN, we callNageneratorofM.For example,...
分类:
其他好文 时间:
2015-02-21 00:15:15
阅读次数:
153
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre...
分类:
其他好文 时间:
2015-02-19 12:54:32
阅读次数:
138
题目:find the nth digitTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 689 Accepted Submission(s): 244 Problem Description假设:S1 = 1S2 = 12S3 = 123S4 ...
分类:
其他好文 时间:
2015-02-16 21:01:57
阅读次数:
271
A. Chewbaсca and Number题意:Inverting digit t means replacing it with digit 9?-?t. Print the minimum possible positive number that Chewbacca can obtain ...
分类:
其他好文 时间:
2015-02-16 01:41:05
阅读次数:
224
https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/Given a digit string, return all possible letter combinations that the number c...
分类:
其他好文 时间:
2015-02-13 18:20:16
阅读次数:
119
var Dates = { //补位 digit: function (m) { return +m = 86400000) { return timestamp + _datenow.getHours(...
分类:
编程语言 时间:
2015-02-13 14:37:03
阅读次数:
338