码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
10603 Fill (BFS)
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 second jug are initially empty, while the thi...
分类:其他好文   时间:2014-09-11 09:42:51    阅读次数:210
PAT 1085 Perfect Sequence
PAT 1085 Perfect Sequence 题目:Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if ...
分类:其他好文   时间:2014-09-07 11:01:24    阅读次数:245
tc srm 632 500 (规律)
We have a sequence of N positive integers: a[0] through a[N-1]. You do not know these integers. All you know is the number of trailing zeros in their ...
分类:其他好文   时间:2014-09-05 22:21:12    阅读次数:367
UVA - 11291 Smeech (模拟)
Description Problem B: Smeech Professor Octastichs has invented a new programming language, Smeech. An expression in Smeech may be a positive or negative integer, or may be of the form (pe1e2) wh...
分类:其他好文   时间:2014-09-05 18:14:51    阅读次数:222
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 sh...
分类:其他好文   时间:2014-09-05 17:47:51    阅读次数:150
UVA-10603-Fill(BFS+优先队列)
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 second jug are initially empty, while the third is completely fill...
分类:其他好文   时间:2014-09-02 22:55:45    阅读次数:289
poj 1426 Find The Multiple
poj 1426 Find The Multiplehttp://poj.org/problem?id=1426题意:Given a positive integer n, write a program to find out a nonzero multiple(倍数) m of n whose...
分类:其他好文   时间:2014-09-02 19:51:15    阅读次数:186
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 sho...
分类:其他好文   时间:2014-09-01 22:19:33    阅读次数:190
Subsequence
DescriptionA sequence of N positive integers (10 >T;33 while(T--)34 {35 cin>>n>>S;36 for(int i=0;i>a[i];38 solve();39 ...
分类:其他好文   时间:2014-09-01 19:22:33    阅读次数:216
乌拉姆数列 Euler167
昨天 yep 问了一个问题: For two positive integers a and b, the Ulam sequence U(a,b) is defined by U(a,b)1 = a, U(a,b)2 = b and for k > 2, U(a,b)k is the smallest integer greater than U(a,b)(k-1) which can...
分类:其他好文   时间:2014-08-31 20:07:21    阅读次数:359
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!