码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
Uva10290 - {Sum+=i++} to Reach N
Problem H{sum+=i++} to Reach NInput:standard inputOutput:standard outputMemory Limit:32 MBAll the positive numbers can be expressed as a sum of one, t...
分类:其他好文   时间:2014-08-30 16:21:39    阅读次数:149
UVA - 11762 Race to 1
Dilu have learned a new thingabout integers, which is - any positive integer greater than 1 can be divided byat least one prime number less than or equal to that number. So, he is nowplaying with this...
分类:其他好文   时间:2014-08-29 22:45:39    阅读次数:366
find the closest sum to a target value
problem: given an array of integers including positive and negative, a target value. find 2 numbers in the array such that the sum of the 2 numbers is...
分类:其他好文   时间:2014-08-27 03:53:57    阅读次数:227
HDU 2993 MAX Average Problem(斜率优化)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2993Problem DescriptionConsider a simple sequence which only contains positive integers as a1, a2 ... a...
分类:其他好文   时间:2014-08-27 01:34:37    阅读次数:335
ZOJ - 1136 Multiple (同余+BFS)
Description a program that, given a natural number N between 0 and 4999 (inclusively), and M distinct decimal digits X1,X2..XM (at least one), finds the smallest strictly positive multiple of N that ...
分类:其他好文   时间:2014-08-26 21:34:06    阅读次数:342
ZOJ3798:Abs Problem
Alice and Bob is playing a game, and this time the game is all about the absolute value! Alice has N different positive integers, and each number is not greater than N. Bob has a lot of blank paper, ...
分类:其他好文   时间:2014-08-26 15:37:46    阅读次数:228
Hackerrank--Prime Sum
题目链接The problem is quite simple. You're given a number N and a positive integer K. Tell if N can be represented as a sum of K prime numbers (not neces...
分类:其他好文   时间:2014-08-25 13:19:04    阅读次数:270
UVA - 11728 Alternate Task (唯一分解定理)
Little Hasan loves to play number games with his friends.One day they were playing a game where one of them will speak out a positive numberand the others have to tell the sum of its factors. The firs...
分类:其他好文   时间:2014-08-25 11:57:04    阅读次数:235
[BestCoder Round #6] hdu 4982 Goffi and Squary Partition(构造)
Goffi and Squary Partition Problem Description Recently, Goffi is interested in squary partition of integers.A set X of k distinct positive integers is called squary partition of n if and ...
分类:其他好文   时间:2014-08-25 11:52:45    阅读次数:208
[LeetCode] First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm s...
分类:其他好文   时间:2014-08-24 20:47:42    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!