1 def jisuan(x) : 2 al_num = 0 3 spance_num = 0 4 digit_num = 0 5 other_num = 0 6 for i in x : 7 if i.isdigit() : 8 digit_num += 1 9 elif i.is... ...
分类:
其他好文 时间:
2016-12-23 18:56:29
阅读次数:
126
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2016-12-23 01:06:35
阅读次数:
133
1.1)grep:是一种文本搜索工具。所谓的元字符是不表示字面意义,元字符表达控制或者通配等功能 2)fgep:fast,不支持正则表达式,当字面量表示。 【grep】 1. 基本正则表达式元字符: . :匹配单个字符。 [] : 匹配指定范围内任意单个字符。 如[0-9] [[:digit:]] ...
分类:
其他好文 时间:
2016-12-22 19:30:21
阅读次数:
151
You are given two linked lists representing two non-negative numbers. The most significant digit comes first and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-12-22 00:01:58
阅读次数:
223
文件名通配:*:任意长度任意字符?:任意单个字符[]:匹配指定范围内的任意单个字符[a-z],[A-Z],[0-9],[a-zA-Z],[0-9a-zA-Z][:space:]:空白字符[:punct:]:标点符号[:lower:]:小写字母[:upper:]:大写字母[:alpha:]:大小写字母[:digit:]:数字[:alnum:]:数字和大小写字母[^..
分类:
系统相关 时间:
2016-12-14 22:15:39
阅读次数:
186
bzoj 500题纪念 总结一发题目吧,挑几道题整理一下,(方便拖板子) 1039:每条线段与前一条线段之间的长度的比例和夹角不会因平移、旋转、放缩而改变,所以将每条轨迹改为比例和夹角的序列,复制一份翻转后的序列,直接上AC自动机即可。注意特判 1125:hash+splay 1183:digit- ...
分类:
其他好文 时间:
2016-12-10 22:07:03
阅读次数:
390
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... ...
分类:
其他好文 时间:
2016-12-07 23:37:52
阅读次数:
242
Last non-zero Digit in N! Problem Description The expression N!, read as "N factorial," denotes the product of the first N positive integers, where N ...
分类:
其他好文 时间:
2016-12-06 20:41:42
阅读次数:
291
题目地址 简要题意: 输入两个数n和m,分别表示给你1——n这些整数,将他们按一定顺序摆成一行,按照杨辉三角的计算方式进行求和,求使他们求到最后时结果等于m的排列中字典序最小的一种。 思路分析: 不难推得第一行为n个数a1\a2\……\an时求得的和为i=0∑n-1 ai*(n-1Ci) 根据此公式 ...
分类:
其他好文 时间:
2016-12-06 02:22:20
阅读次数:
147
Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n is positive and will fit within the range of a 32-bi ...
分类:
其他好文 时间:
2016-12-04 14:22:32
阅读次数:
216