码迷,mamicode.com
首页 >  
搜索关键字:digit recongnizer    ( 1477个结果
[LeetCode] Letter Combinations of a Phone Number
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...
分类:其他好文   时间:2014-12-28 15:24:35    阅读次数:123
Java中Integer.parse()的学习总结
内部使用负数表示 当函数还未考虑到符号影响时候,内部是用负数来表示逐步转换的结果。 初看到下面两句,很是疑惑。 int?max?=?Integer.MIN_VALUE?/?radix; int?next?=?result?*?radix?-?digit; 为什...
分类:编程语言   时间:2014-12-28 13:03:01    阅读次数:547
linux正则表达式与文件格式化处理指令
1.特殊符号:1)[:alnum:]:字母和数字2)[:alpha:]:字母3)[:blank:]:空格和tab键4)[:cntrl:]:控制键CR,LF,Tab,Del等5)[:digit:]:数字6)[:graph:]:除了空格符(空格和tab)外的其他按键7)[:lower:]:小写字母8)[:print:]:可打印字符9)[:punct:]:标点符号10)[:..
分类:系统相关   时间:2014-12-28 02:00:01    阅读次数:221
csuoj--1347Last Digit+数学问题
题意:    定义一个函数f(n, k) = 1k + 2k + 3k +...+ nk,输入n,k求f(n,k)的最后一位数字。 思路:   本来相用快速幂做的,后面想了一下因为它只关心最后一位数字,所以其实该函数是一个周期为10的周期函数(我们只关心n的最后一位数字);然后对于0--9的幂又是有周期的(自己稍微在纸上写一下就知道了),所以可以利用周期性解决了:对于每一次输入,我们先计...
分类:其他好文   时间:2014-12-27 08:59:23    阅读次数:141
Letter Combinations of a Phone Number -- leetcode
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit string...
分类:其他好文   时间:2014-12-23 19:40:19    阅读次数:192
【LeetCode】Letter Combinations of a Phone Number
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:其他好文   时间:2014-12-20 15:23:53    阅读次数:149
Delete Numbers(swust oj 0700)
Description:http://acm.swust.edu.cn/problem/0700/AC代码:#include#includeint main(){ char digit[2000]; while(scanf("%s",digit)!=EOF){ int len=st...
分类:其他好文   时间:2014-12-19 13:00:14    阅读次数:104
翻煎饼(swust oj 0254)
Description:http://acm.swust.edu.cn/problem/0254/解题思路:先找出最大的煎饼,先翻转到最上面,最后翻转到最下层AC代码:#includeint time=0;int digit[1000];void turn(int a,int b)//翻煎饼{ .....
分类:其他好文   时间:2014-12-18 21:52:36    阅读次数:686
正则表达式——grep, sed,awd
一、正则表达式的定义:就是以行为单位处理字符串的方式。1.元字符:不表示字符本身的意义,用于额外功能性的描述。1)字符匹配:.:匹配任意单个字符[]:匹配指定范围内的任意单个字符[^]:匹配指定范围外的任意单个字符[:digit:]:代表数字,既0-9[:alnum:]:代表代表英文大小..
分类:其他好文   时间:2014-12-18 19:02:02    阅读次数:740
HDU - 1061 - Rightmost Digit (快速幂取模!)
Rightmost Digit Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 34329    Accepted Submission(s): 13091 Problem Description Given a ...
分类:Web程序   时间:2014-12-14 10:43:18    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!