export function RMBFitter(n){ /**金额大写的转换 */ var fraction = ['角', '分']; var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; var unit = [ [' ...
分类:
编程语言 时间:
2018-10-09 12:15:23
阅读次数:
385
一、题目 Chinese people think of '8' as the lucky digit. Bob also likes digit '8'. Moreover, Bob has his own lucky number L. Now he wants to construct his ...
分类:
其他好文 时间:
2018-10-07 13:00:54
阅读次数:
250
Given a non negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro ...
分类:
其他好文 时间:
2018-10-05 13:55:26
阅读次数:
163
题目链接 Problem Description Given a positive integer N, you should output the most right digit of N^N. Input The input contains several test cases. The f ...
分类:
Web程序 时间:
2018-10-04 13:22:04
阅读次数:
169
Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le ...
分类:
其他好文 时间:
2018-10-04 10:00:48
阅读次数:
133
题目大意 给出一个树,每条边上写了一个数字,给出一个G,求有多少条路径按顺序读出的数字可以被G整除。保证G与10互质。 题解 双倍经验~ 首先一条路径顺着读和逆着读是视为两条不同的路径的,即使值一样。 同时要注意一条路径顺着读和逆着读不一定都满足要求,比如14能整出7而41不能。 于是我们可以把一条 ...
分类:
其他好文 时间:
2018-10-02 17:54:35
阅读次数:
435
A self dividing number is a number that is divisible by every digit it contains. For example, 128 is a self dividing number because 128 % 1 == 0, 128 ...
分类:
其他好文 时间:
2018-10-02 17:47:10
阅读次数:
112
题目不再写入了,vj:https://vjudge.net/problem/UVA-1583#author=0 主要讲的是找一个数的小于它的一个数,小于它的那个数每一位加起来再加上那个数就会等于原来的数。没有就是0. 这个题实际上感觉也直接暴力for就行。数最大是1e5.那么最多5个9那么就是45, ...
分类:
其他好文 时间:
2018-10-01 23:49:21
阅读次数:
287
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 ...
分类:
其他好文 时间:
2018-10-01 17:55:47
阅读次数:
180
In the following, every capital letter represents some hexadecimal digit from 0 to f. The red-green-blue color "#AABBCC" can be written as "#ABC" in s ...
分类:
其他好文 时间:
2018-10-01 10:36:09
阅读次数:
295