码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
hdu 1013 Digital Roots 用一个大水题来纪念我进入杭电前一万名
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are sum...
分类:其他好文   时间:2015-02-08 18:14:30    阅读次数:113
lintcode: k Sum 解题报告
k SumShow ResultMy Submissionshttp://www.lintcode.com/en/problem/k-sum/题目来自九章算法13%AcceptedGiven n distinct positive integers, integer k (k = 0) { ...
分类:其他好文   时间:2015-02-08 09:01:04    阅读次数:197
1059. Prime Factors (25)
时间限制50 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者HE, QinmingGiven any positive integer N, you are supposed to find all of its prime factors, and write ...
分类:其他好文   时间:2015-02-08 00:17:46    阅读次数:186
1078. Hashing (25)
时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe task of this problem is simple: insert a sequence of distinct positive integers into a h...
分类:其他好文   时间:2015-02-07 22:54:49    阅读次数:161
LeetCode 041 First Missing Positive
题目要求:First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]retur...
分类:其他好文   时间:2015-02-07 21:36:58    阅读次数:178
[leetcode] First Missing Positive
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Yo...
分类:其他好文   时间:2015-02-07 20:17:25    阅读次数:127
hdu 3473 Minimum Sum 再来一波划分树,对划分树累觉不爱。
Problem Description You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make as small as possible! Input The first line is an integer T (T <= 10), indicat...
分类:其他好文   时间:2015-02-07 14:39:36    阅读次数:205
[LeetCode]Excel Sheet Column Title
Q:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example:1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 这道题是Excel Sheet Column Number的反转。 与一般的N进制的...
分类:其他好文   时间:2015-02-07 13:12:54    阅读次数:131
正则表达式的先行断言(lookahead)和后行断言(lookbehind)
正则表达式的先行断言和后行断言一共有4种形式:(?=pattern) 零宽正向先行断言(zero-width positive lookahead assertion)(?!pattern) 零宽负向先行断言(zero-width negative lookahead assertion)(?<=p...
分类:其他好文   时间:2015-02-06 23:06:51    阅读次数:360
杭电ACM 最小公倍数
Problem Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and 1...
分类:其他好文   时间:2015-02-06 21:51:26    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!