Two players, S and T, are playing a game where they makealternate moves.
S plays first.
In this game, they start with an integer N. In each move, a player removesone digit from the integer and pass...
分类:
其他好文 时间:
2014-08-20 10:28:46
阅读次数:
239
1A! This is actually a basic question in Combinatorics: if at digit[k] = n, it contributes (k-1)! * n to the targeted index.class Solution {public: .....
分类:
其他好文 时间:
2014-08-19 14:22:04
阅读次数:
169
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...
分类:
其他好文 时间:
2014-08-17 16:44:42
阅读次数:
179
1833: [ZJOI2010]count 数字计数Time Limit:3 SecMemory Limit:64 MBSubmit:1250Solved:574[Submit][Status]Description给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多...
分类:
其他好文 时间:
2014-08-16 18:26:20
阅读次数:
214
Description
Optimal Symmetric Paths
You have a grid of n rows and
n columns. Each of the unit squares contains a non-zero digit. You walk from the top-left square to the b...
分类:
其他好文 时间:
2014-08-16 12:36:50
阅读次数:
332
Math.formatFloat = function (f, digit) { var m = Math.pow(10, digit); return parseInt(f * m, 10) / m;} 摘自 http://www.cnblogs.com/fumj/archive/2012/12/...
分类:
Web程序 时间:
2014-08-15 19:36:09
阅读次数:
250
正则表达式\<the\>:精确匹配the,不包括包含the的单词[^b-d]:不包含b~da\{2\}:a出现2次a\{2,3\}:a出现2~3次a\{2,\}:a至少出现2次[:upper:]:大写字母(用的时候外面加一层[]表示匹配字符集合)[:lower:]:小写字母[:digit:]:数字[:alnum:]:大小写字母和数字[:space..
分类:
其他好文 时间:
2014-08-15 02:52:37
阅读次数:
199
find the nth digit
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 8363 Accepted Submission(s): 2385
Problem Description
假设:
S1 = 1...
分类:
其他好文 时间:
2014-08-14 10:53:08
阅读次数:
158
find the nth digit
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 8356 Accepted Submission(s): 2383
Problem Description
假设:
S1...
分类:
其他好文 时间:
2014-08-13 19:08:07
阅读次数:
144
特殊符号
[:alnum:] 代表英文大小写字符及数字,即 0-9, A-Z, a-z
[:alpha:] 代表任何英文大小写字符,即 A-Z, a-z
[:upper:] 代表大写字符,即 A-Z
[:lower:] 代表小写字符,即 a-z
[:digit:] 代表数字而已,即 0-9
[:xdigit:] 代表 16 进制数字类型,因此包括: 0-9, A-F, a-f 的数字与字符...
分类:
其他好文 时间:
2014-08-13 19:06:57
阅读次数:
221