QuestionFind thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.Fo...
分类:
其他好文 时间:
2015-09-22 07:43:52
阅读次数:
204
QuestionGiven a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the follow...
分类:
其他好文 时间:
2015-09-21 09:09:16
阅读次数:
198
Largest Point
Time Limit: 1500/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 536 Accepted Submission(s): 230
Problem Description
Given the sequence A
w...
分类:
其他好文 时间:
2015-09-20 17:52:28
阅读次数:
210
DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and ...
分类:
其他好文 时间:
2015-09-20 16:08:46
阅读次数:
164
称号:Maximal SquareGiven a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given t...
分类:
其他好文 时间:
2015-09-20 16:06:24
阅读次数:
122
Thinking about it: 对于式子 a * ti * ti + b * tj,可以看作时有两部分构成 a * ti * ti 和 b * tj,如果整个式子要最大,则要求这两部分都要尽量大。那么再读入数据 t 时,那么就可以构造两个数组,一个存储a * ti * ti ,另一个存储 b....
分类:
其他好文 时间:
2015-09-20 13:12:33
阅读次数:
122
Problem DescriptionGiven the sequence A with n integers t1,t2,?,tn. Given the integral coefficients a and b. The fact that select two elements ti and ...
分类:
其他好文 时间:
2015-09-20 10:25:03
阅读次数:
149
QuestionFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4...
分类:
其他好文 时间:
2015-09-20 06:57:26
阅读次数:
102
Largest PointTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5461DescriptionGiven the sequence A with n integers t...
分类:
其他好文 时间:
2015-09-20 00:09:12
阅读次数:
258
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5461比赛的时候没敢多想,直接把八个情况全部枚举出来。 1 #include 2 #include 3 #include 4 #include 5 using namespace std...
分类:
其他好文 时间:
2015-09-19 19:35:29
阅读次数:
165