码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
TC SRM 665 DIV2 A LuckyXor 暴力
LuckyXorTime Limit: 20 SecMemory Limit: 256 MB题目连接TCDescriptionA lucky number is a positive integer consisting of only the digits 4 and 7.Given an int...
分类:其他好文   时间:2015-08-11 23:19:08    阅读次数:227
1082. Read Number in Chinese (25)
题目如下: Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For example, -123456789 is read as "Fu yi Yi ...
分类:其他好文   时间:2015-08-10 20:10:22    阅读次数:165
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
FZU 2105-Digits Count(线段树延时标记)
题意:每次操作区间每个数进行一种(&或|、或^ )给定的一个数,到sum时统计给定区间的和。分析:这个题让我觉得我的思维很不活跃,对懒惰标记理解,还远远不够,通过这道题我对懒惰标记加深了不少。经过各种操作和区间会变成相同数都相邻的情况,若在操作会变成另一个相同数。选区间内相同数字为懒惰标记进行更新。...
分类:其他好文   时间:2015-08-10 00:10:14    阅读次数:113
Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som...
分类:其他好文   时间:2015-08-10 00:00:19    阅读次数:403
UVA-10061 How many zero's and how many digits ? (数论)
题目大意:让求n!在base进制下的位数以及末尾0的连续个数。题目分析:一个m位的b进制数N,最小是b^(m-1),最大不超过b^m,即b^(m-1)≤N# include# include# include# include# includeusing namespace std;const in...
分类:其他好文   时间:2015-08-09 12:11:30    阅读次数:125
CodeForces 545B
Description Little Susie loves strings. Today she calculates distances between them. As Susie is a small girl after all, her strings contain only digits zero and one. She uses the definition of Ham...
分类:其他好文   时间:2015-08-08 18:25:39    阅读次数:117
Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321注意考虑几个情况,x=1534236460 1534236469 -2147483647等等。写的代码有点冗长了。 1 pub...
分类:其他好文   时间:2015-08-08 11:45:33    阅读次数:118
【LeetCode】66 - Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2015-08-07 00:15:28    阅读次数:100
HDU-4249-A Famous Equation(DP)
Problem DescriptionMr. B writes an addition equation such as 123+321=444 on the blackboard after class. Mr. G removes some of the digits and makes it ...
分类:其他好文   时间:2015-08-06 22:04:12    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!