码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
快速幂
快速幂 Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit Status Description Given a positive integer N, you should output the most right digit of N^N. Input...
分类:其他好文   时间:2014-07-28 15:49:53    阅读次数:262
LeetCode "First Missing Positive"
Similar with "Longest Consecutive Sequence". Another usage to hashset.Take care of corner cases!class Solution {public: int firstMissingPositive(in...
分类:其他好文   时间:2014-07-28 15:16:43    阅读次数:206
正则表达式的先行断言(lookahead)和后行断言(lookbehind)
正则表达式的先行断言和后行断言一共有4种形式:? (?=pattern) 零宽正向先行断言(zero-width positive lookahead assertion)? (?!pattern) 零宽负向先行断言(zero-width negative lookahead assertion)? (?<=...
分类:其他好文   时间:2014-07-28 00:49:49    阅读次数:285
Problem E CodeForces 237C
DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has e...
分类:其他好文   时间:2014-07-27 22:51:29    阅读次数:288
CodeForces 237C Primes on Interval
DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has e...
分类:其他好文   时间:2014-07-27 22:31:39    阅读次数:809
[ACM] POJ 3061 Subsequence (尺取法)
Subsequence Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8403   Accepted: 3264 Description A sequence of N positive integers (10 < N < 100 000), each of...
分类:其他好文   时间:2014-07-24 10:27:40    阅读次数:215
POJ 2739 Sum of Consecutive Prime Numbers
Sum of Consecutive Prime Numbers Description Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive ...
分类:其他好文   时间:2014-07-21 22:18:12    阅读次数:222
poj1651Multiplication Puzzle(取数,区间DP)
Description The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:其他好文   时间:2014-07-21 22:11:18    阅读次数:289
UVA fill
题目如下: Problem D Fill   There are three jugs with a volume of a, b and c liters. (a,b, and c are positive integers not greater than 200). The first and the secondjug are initially empty, wh...
分类:其他好文   时间:2014-07-21 11:32:15    阅读次数:253
区间Dp 暴力枚举+动态规划 Hdu1081
F - 最大子矩形 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any ...
分类:其他好文   时间:2014-07-19 23:26:59    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!