码迷,mamicode.com
首页 >  
搜索关键字:digit recongnizer    ( 1477个结果
hdu 5375 Gray code(DP)
hdu 5375 Gray codeProblem Description The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only onebit (binary digit)....
分类:其他好文   时间:2015-08-11 23:35:32    阅读次数:171
Digit Generator(水)
题目链接:http://acm.tju.edu.cn/toj/showp2502.html2502. Digit GeneratorTime Limit: 1.0 Seconds Memory Limit: 65536KTotal Runs: 2426 Accepted Runs: 1579For....
分类:其他好文   时间:2015-08-11 18:05:38    阅读次数:106
数字统计(LeetCode Number of digit One)
1. 一本书的页码从自然数1开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如第6页用6表示而不是06或006。数字统计问题要求对给定书的总页码,计算出书的全部页码中分别用到多少次数字0,1,2,3,.....9。思路:对于n位数,例如3位数,000-999....
分类:其他好文   时间:2015-08-11 12:09:16    阅读次数:145
find the nth digit(二分查找)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1597find the nth digitTime Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)To...
分类:其他好文   时间:2015-08-10 17:47:11    阅读次数:108
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2015-08-10 00:24:55    阅读次数:93
pat00-自测4. Have Fun with Numbers (20)
00-自测4. Have Fun with Numbers (20)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is a 9-digit number consis...
分类:其他好文   时间:2015-08-10 00:14:47    阅读次数:137
欧拉工程第56题:Powerful digit sum
题目链接 Java程序 package projecteuler51to60; import java.math.BigInteger; import java.util.Iterator; import java.util.Set; import java.util.TreeSet; class ...
分类:其他好文   时间:2015-08-09 22:09:21    阅读次数:178
codeforces
B - Inna and Nine Time Limit:1000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64u Submit Status Description Inna loves digit 9 very much. That's why she asked Dima to wri...
分类:其他好文   时间:2015-08-09 18:55:11    阅读次数:233
【穷竭】POJ3187-Backward Digit Sums
【思路】利用杨辉三角形,每一个数字被加的次数等于它在杨辉三角形中对应的那个数字。注意这道题的意思是,最底层是N的全排序,而不是指1..10都可以。生成杨辉三角形的时候第一次我用了二重循环模拟生成,后来学习到,杨辉三角形中,第n行第k个数字为Cnk。不过在第二个程序中我的杨辉三角形没有预处理,导致了很...
分类:其他好文   时间:2015-08-09 18:35:35    阅读次数:126
[leedcode 233] Number of Digit One
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6...
分类:其他好文   时间:2015-08-08 18:04:05    阅读次数:114
1477条   上一页 1 ... 86 87 88 89 90 ... 148 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!