Problem DescriptionA sequence consisting of one digit, the number 1 is initially written into a computer. At each successive time step, the computer s...
分类:
其他好文 时间:
2015-05-18 18:25:26
阅读次数:
99
字符串类型验证ctype_alnum— 做字母和数字字符检测ctype_alpha— 做纯字符检测ctype_cntrl— 做控制字符检测ctype_digit— 做纯数字检测ctype_graph— 做可打印字符串检测,空格除外ctype_lower— 做小写字符检测ctype_print— 做可...
分类:
Web程序 时间:
2015-05-18 18:09:44
阅读次数:
135
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
编程语言 时间:
2015-05-16 11:47:02
阅读次数:
107
1631 LockerA password locker with N digits, each digit can be rotated to 0-9 circularly.You can rotate 1-3 consecutive digits up or down in one step.F...
分类:
其他好文 时间:
2015-05-16 10:19:13
阅读次数:
725
Let’s consider K-based numbers, containing exactly N digits. We define a number to be valid if its K-based notation doesn’t contain two successive zeros. For example:1010230 is a valid 7-digit number;...
分类:
其他好文 时间:
2015-05-14 22:10:44
阅读次数:
191
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.
对一个数字进行加1运算,这里需要注意进位的情况。按以...
分类:
其他好文 时间:
2015-05-14 20:34:53
阅读次数:
126
Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then...
分类:
其他好文 时间:
2015-05-14 00:37:26
阅读次数:
108
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-05-13 06:17:42
阅读次数:
157
题目A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.Find the larges...
分类:
其他好文 时间:
2015-05-13 00:51:35
阅读次数:
228
其它进制转换成10进制 ((num=base#digit)) echo $numbase8->base10 ((num=8#123)) echo $num 83base16->base10 ((num=16#ff)) echo $num 25510进制转换成其它进制 echo "obase=base...
分类:
系统相关 时间:
2015-05-12 13:23:36
阅读次数:
159