码迷,mamicode.com
首页 >  
搜索关键字:intersection of two    ( 11974个结果
HDU 4324 Triangle LOVE 拓扑排序
Problem Description Recently, scientists find that there is love between any of two people. For example, between A and B, if A don’t love B, then B must love A, vice versa. And there is no possibilit...
分类:其他好文   时间:2014-07-30 17:38:04    阅读次数:287
UVa 340 Master-Mind Hints
Master-Mind Hints  MasterMind is a game for two players. One of them, Designer, selects a secret code. The other,Breaker, tries to break it. A code is no more than a row of colored dots. ...
分类:其他好文   时间:2014-07-30 14:44:53    阅读次数:242
ZOJ 4257 Most Powerful
Description Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and ...
分类:其他好文   时间:2014-07-30 12:24:13    阅读次数:226
Ultra-QuickSort(树状数组 + 离散化)
Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seq...
分类:其他好文   时间:2014-07-30 12:22:33    阅读次数:290
poj 3414
Pots Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9734   Accepted: 4099   Special Judge Description You are given two pots, having the volume of A and B...
分类:其他好文   时间:2014-07-30 12:17:03    阅读次数:297
杭电 2056
Rectangles Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 14340    Accepted Submission(s): 4629 Problem Description Given two rectangl...
分类:其他好文   时间:2014-07-30 12:16:43    阅读次数:191
SPOJ TWOPATHS Two Paths
题目意思:给一棵树,找到俩个不相交的通路,使得这俩个通路的长度和乘机最大;解法: 小哥一看呵呵 这不就是枚举点 然后求俩边的树的直径在相乘求个最大值的题么! 呵呵 这个N 有100000 当时就不玩了; 学长指导了下我; 俺会了!/灯泡 在枚举点在书的直径上时点的左右的最长的链无非这几...
分类:其他好文   时间:2014-07-30 12:07:53    阅读次数:342
[LeetCode] Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:其他好文   时间:2014-07-30 12:05:03    阅读次数:248
Combinations leetcode java
题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], ...
分类:编程语言   时间:2014-07-30 09:58:03    阅读次数:218
pots(BFS)
D - Pots Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu Submit Status Description You are given two pots, having the volume of A and B liters respectively. ...
分类:其他好文   时间:2014-07-29 21:58:32    阅读次数:402
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!