P1118 [USACO06FEB]数字三角形Backward Digit Su… ...
分类:
其他好文 时间:
2018-02-24 19:22:57
阅读次数:
175
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:
其他好文 时间:
2018-02-24 10:46:05
阅读次数:
174
正则表达式:是一类字符所书写出的模式(pattern)元字符:不表示字符本身的意义,用于额外功能性的描述。分为基本正则表达式和扩展正则表达式基本正则表达式的元字符:字符匹配:.:任意单个字符[]:指定范围内的任意单个字符[0-9],[[:digit:]]数字[a-z],[[:lower:]]小写字母[A-Z],[[:upper:]]大写字母[[:alpha:]]大小写字母[[:alnum:]]数字
分类:
其他好文 时间:
2018-02-23 17:19:38
阅读次数:
131
[抄题]: Given a digit string excluded 01, return all possible letter combinations that the number could represent. A mapping of digit to letters (just l ...
分类:
其他好文 时间:
2018-02-20 16:23:15
阅读次数:
142
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-02-17 10:28:46
阅读次数:
175
【题目描述】 如果x加上x的各个数字之和得到y,就说x是y的生成元。给出n(1≤n≤100000),求最小生成元。无解输出0。例如,n=216,121,2005时的解分别为198,0,1979。 【代码实现】 方法1 方法2 【总结】 自己的方法是纯暴力枚举,真的简单。。但对一个数进行按位拆分的时候 ...
分类:
其他好文 时间:
2018-02-16 14:17:03
阅读次数:
302
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai... ...
分类:
其他好文 时间:
2018-02-12 23:40:27
阅读次数:
232
Find the largest palindrome made from the product of two n-digit numbers Since the result could be very large, you should return the largest palindrom ...
分类:
其他好文 时间:
2018-02-12 16:49:24
阅读次数:
130
* 任意长度的任意字符 ? 任意单个字符 [ ] 指定范围内的任意单个字符 [^ ] 指定范围之外的任意单个字符 [:digit:] 数字 [:lower:] 小写字母 [:upper:] 大写字母 [:alpha:] 所有字母 [:punct:] 标点 [:space:] 空白 [:alnum:] ...
分类:
其他好文 时间:
2018-02-12 13:52:21
阅读次数:
108
Given a time represented in the format "HH:MM", form the next closest time by reusing the current digits. There is no limit on how many times a digit ...
分类:
其他好文 时间:
2018-02-10 11:21:00
阅读次数:
156